Selecting XML instead of HTML

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Selecting XML instead of HTML

Jean-Sébastien HEDERER
I'd like to know where is made selection of org.ofbiz.widget.html
instead of others form renderers. I'd like to try to use XmlFormRenderer
(and complete it?)
Reply | Threaded
Open this post in threaded view
|

Re: Selecting XML instead of HTML

Jacopo Cappellato
In the controller's view definition. For example:

<view-map name="ViewFacilityInventoryByProductExport" type="screenxml"
page="component://product/widget/facility/FacilityScreens.xml#ViewFacilityInventoryByProductExport"
content-type="text/xml"/>

that is defined in the facility's controller file.

Jacopo

Jean-Sébastien Hederer wrote:
> I'd like to know where is made selection of org.ofbiz.widget.html
> instead of others form renderers. I'd like to try to use XmlFormRenderer
> (and complete it?)

Reply | Threaded
Open this post in threaded view
|

Access html file directly without controller

Amit Shinde
Hello Everyone,

Do you know if we can access html directly in OFBiz without going through
the controller? I am trying to integrate Google Web Toolkit with OFBiz and
when we compile the source code everytime, new html files are created by the
GWT compiler with different names and they are accessed from the client. So
I have to go to the controller and rename the request-map and view-map to
the newly created file. Let me know if there is a way so that I dont have to
edit the controller after every compile.


Thanks in advance,

Amit Shinde


Reply | Threaded
Open this post in threaded view
|

Re: Access html file directly without controller

cjhowe
Your /WEB-INF/web.xml file in each webapp dictates how
things are served to the controller (or elsewhere).
If you don't want to learn all the nuances there, just
stick your html in framework/images/webapp/ and they
will be served as is by
http://yourdomain/images/yourhtml.html

--- Amit Shinde <[hidden email]> wrote:

> Hello Everyone,
>
> Do you know if we can access html directly in OFBiz
> without going through
> the controller? I am trying to integrate Google Web
> Toolkit with OFBiz and
> when we compile the source code everytime, new html
> files are created by the
> GWT compiler with different names and they are
> accessed from the client. So
> I have to go to the controller and rename the
> request-map and view-map to
> the newly created file. Let me know if there is a
> way so that I dont have to
> edit the controller after every compile.
>
>
> Thanks in advance,
>
> Amit Shinde
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Access html file directly without controller

David E Jones-2
In reply to this post by Amit Shinde

Just put the resources in a directory under the webapp root and then  
add that directory to the "allowedPaths" init-param's list in the  
ContextFilter filter definition.

-David


On Nov 26, 2006, at 10:17 PM, Amit Shinde wrote:

> Hello Everyone,
>
> Do you know if we can access html directly in OFBiz without going  
> through
> the controller? I am trying to integrate Google Web Toolkit with  
> OFBiz and
> when we compile the source code everytime, new html files are  
> created by the
> GWT compiler with different names and they are accessed from the  
> client. So
> I have to go to the controller and rename the request-map and view-
> map to
> the newly created file. Let me know if there is a way so that I  
> dont have to
> edit the controller after every compile.
>
>
> Thanks in advance,
>
> Amit Shinde
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Access html file directly without controller

David Goodenough
In reply to this post by Amit Shinde
On Monday 27 November 2006 05:17, Amit Shinde wrote:

> Hello Everyone,
>
> Do you know if we can access html directly in OFBiz without going through
> the controller? I am trying to integrate Google Web Toolkit with OFBiz and
> when we compile the source code everytime, new html files are created by
> the GWT compiler with different names and they are accessed from the
> client. So I have to go to the controller and rename the request-map and
> view-map to the newly created file. Let me know if there is a way so that I
> dont have to edit the controller after every compile.
>
>
> Thanks in advance,
>
> Amit Shinde
Nothing to do with your question, but can I ask what you are using GWT
for with Ofbiz?  I am keen on GWT and OfBiz and if you are doing anything
generic I would be interested to help.

David
Reply | Threaded
Open this post in threaded view
|

RE: Access html file directly without controller

Amit Shinde
Hi David,
               I am basically creating prototypes for evaluating various
AJAX frameworks for a client. I have created a couple prototypes - one based
on JSON and other on GWT. JSON prototype is completed and GWT is almost
completed. There are still a few things like session management, security
and integration in screen widgets etc. that I need to look at in GWT. Have
you worked on GWT before?
           These prototypes might be commited in OFBiz so that the community can
refer and leverage the prototypes. I would like your help in GWT in pretty
much anything you want.

Thanks,
Amit Shinde


----Original Message-----
From: David Goodenough [mailto:[hidden email]]
Sent: Monday, November 27, 2006 4:08 PM
To: [hidden email]
Subject: Re: Access html file directly without controller


On Monday 27 November 2006 05:17, Amit Shinde wrote:
> Hello Everyone,
>
> Do you know if we can access html directly in OFBiz without going through
> the controller? I am trying to integrate Google Web Toolkit with OFBiz and
> when we compile the source code everytime, new html files are created by
> the GWT compiler with different names and they are accessed from the
> client. So I have to go to the controller and rename the request-map and
> view-map to the newly created file. Let me know if there is a way so that
I
> dont have to edit the controller after every compile.
>
>
> Thanks in advance,
>
> Amit Shinde
Nothing to do with your question, but can I ask what you are using GWT
for with Ofbiz?  I am keen on GWT and OfBiz and if you are doing anything
generic I would be interested to help.

David


Reply | Threaded
Open this post in threaded view
|

Re: Access html file directly without controller

David Goodenough
On Monday 27 November 2006 10:50, Amit Shinde wrote:
> Hi David,
>                I am basically creating prototypes for evaluating various
> AJAX frameworks for a client. I have created a couple prototypes - one
> based on JSON and other on GWT. JSON prototype is completed and GWT is
> almost completed. There are still a few things like session management,
> security and integration in screen widgets etc. that I need to look at in
> GWT. Have you worked on GWT before?
I have been using GWT for a project for a client, and am very pleased with
the results (they are not publically visible I am afraid).

The project involved an existing XML based set of servlets, which used to
have a JSP front end.  This I replaced with a GWT one, and managed to
improve the functionality and ease of use.

As OfBiz has (as I understand it) a native XML format I had looked at (but not
got anywhere with) using that directly.  Ofbiz is the bit of this I know least
about.  But I have an interest in being able to use OfBiz (and opentaps) for
other clients as well.

I feel comfortable doing everything in Java (although Javascript is a great
language it is not easy to validate before you run it, GWT solves that
problem for me).

David

>   These prototypes might be commited in OFBiz so that the community can
> refer and leverage the prototypes. I would like your help in GWT in pretty
> much anything you want.
>
> Thanks,
> Amit Shinde
>
>
> ----Original Message-----
> From: David Goodenough [mailto:[hidden email]]
> Sent: Monday, November 27, 2006 4:08 PM
> To: [hidden email]
> Subject: Re: Access html file directly without controller
>
> On Monday 27 November 2006 05:17, Amit Shinde wrote:
> > Hello Everyone,
> >
> > Do you know if we can access html directly in OFBiz without going through
> > the controller? I am trying to integrate Google Web Toolkit with OFBiz
> > and when we compile the source code everytime, new html files are created
> > by the GWT compiler with different names and they are accessed from the
> > client. So I have to go to the controller and rename the request-map and
> > view-map to the newly created file. Let me know if there is a way so that
>
> I
>
> > dont have to edit the controller after every compile.
> >
> >
> > Thanks in advance,
> >
> > Amit Shinde
>
> Nothing to do with your question, but can I ask what you are using GWT
> for with Ofbiz?  I am keen on GWT and OfBiz and if you are doing anything
> generic I would be interested to help.
>
> David
Reply | Threaded
Open this post in threaded view
|

RE: Access html file directly without controller

Girish Patil
In reply to this post by Amit Shinde
allowedPaths init param in web.xml might be helpful to you putting it for your reference
 
 <init-param>
  <param-name>allowedPaths</param-name>
  <param-value>/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css</param-value>
  </init-param>

________________________________

From: Amit Shinde [mailto:[hidden email]]
Sent: Mon 11/27/2006 10:50 AM
To: [hidden email]
Subject: RE: Access html file directly without controller



Hi David,
               I am basically creating prototypes for evaluating various
AJAX frameworks for a client. I have created a couple prototypes - one based
on JSON and other on GWT. JSON prototype is completed and GWT is almost
completed. There are still a few things like session management, security
and integration in screen widgets etc. that I need to look at in GWT. Have
you worked on GWT before?
           These prototypes might be commited in OFBiz so that the community can
refer and leverage the prototypes. I would like your help in GWT in pretty
much anything you want.

Thanks,
Amit Shinde


----Original Message-----
From: David Goodenough [mailto:[hidden email]]
Sent: Monday, November 27, 2006 4:08 PM
To: [hidden email]
Subject: Re: Access html file directly without controller


On Monday 27 November 2006 05:17, Amit Shinde wrote:
> Hello Everyone,
>
> Do you know if we can access html directly in OFBiz without going through
> the controller? I am trying to integrate Google Web Toolkit with OFBiz and
> when we compile the source code everytime, new html files are created by
> the GWT compiler with different names and they are accessed from the
> client. So I have to go to the controller and rename the request-map and
> view-map to the newly created file. Let me know if there is a way so that
I
> dont have to edit the controller after every compile.
>
>
> Thanks in advance,
>
> Amit Shinde
Nothing to do with your question, but can I ask what you are using GWT
for with Ofbiz?  I am keen on GWT and OfBiz and if you are doing anything
generic I would be interested to help.

David




Reply | Threaded
Open this post in threaded view
|

RE: Access html file directly without controller

Amit Shinde
In reply to this post by David Goodenough
David,
           The way I have designed it is - GWT widgets make a RPC call to a
RemoteService which in turn call an OFBiz service and so on. Its nice to
leverage benefits of both GWT and OFBiz. I will let you know how everything
goes. I have worked a lot on JavaScript and using GWT means using all the
JavaScript equivalent in Java. As I havent gone so deep in that yet, I am
not in a position to tell how good of a job Google has done. But of course
Google being Google I can always bet on them anytime.


Amit Shinde

-----Original Message-----
From: David Goodenough [mailto:[hidden email]]
Sent: Monday, November 27, 2006 4:32 PM
To: [hidden email]
Subject: Re: Access html file directly without controller


On Monday 27 November 2006 10:50, Amit Shinde wrote:
> Hi David,
>                I am basically creating prototypes for evaluating various
> AJAX frameworks for a client. I have created a couple prototypes - one
> based on JSON and other on GWT. JSON prototype is completed and GWT is
> almost completed. There are still a few things like session management,
> security and integration in screen widgets etc. that I need to look at in
> GWT. Have you worked on GWT before?
I have been using GWT for a project for a client, and am very pleased with
the results (they are not publically visible I am afraid).

The project involved an existing XML based set of servlets, which used to
have a JSP front end.  This I replaced with a GWT one, and managed to
improve the functionality and ease of use.

As OfBiz has (as I understand it) a native XML format I had looked at (but
not
got anywhere with) using that directly.  Ofbiz is the bit of this I know
least
about.  But I have an interest in being able to use OfBiz (and opentaps) for
other clients as well.

I feel comfortable doing everything in Java (although Javascript is a great
language it is not easy to validate before you run it, GWT solves that
problem for me).

David

>   These prototypes might be commited in OFBiz so that the community can
> refer and leverage the prototypes. I would like your help in GWT in pretty
> much anything you want.
>
> Thanks,
> Amit Shinde
>
>
> ----Original Message-----
> From: David Goodenough [mailto:[hidden email]]
> Sent: Monday, November 27, 2006 4:08 PM
> To: [hidden email]
> Subject: Re: Access html file directly without controller
>
> On Monday 27 November 2006 05:17, Amit Shinde wrote:
> > Hello Everyone,
> >
> > Do you know if we can access html directly in OFBiz without going
through
> > the controller? I am trying to integrate Google Web Toolkit with OFBiz
> > and when we compile the source code everytime, new html files are
created
> > by the GWT compiler with different names and they are accessed from the
> > client. So I have to go to the controller and rename the request-map and
> > view-map to the newly created file. Let me know if there is a way so
that

>
> I
>
> > dont have to edit the controller after every compile.
> >
> >
> > Thanks in advance,
> >
> > Amit Shinde
>
> Nothing to do with your question, but can I ask what you are using GWT
> for with Ofbiz?  I am keen on GWT and OfBiz and if you are doing anything
> generic I would be interested to help.
>
> David