RE: Clay jsfid="form" not working
Gary, Your comments made give another closer look at the components on my pages that did not work. It turned out that a mall formatted object and embed tag for a flash file caused the problem. I had the following ugly tag that worked before I used clay. (There must be better ways but when I build it I just stuck with what worked): " /> Now, however, I have an equally ugly solution that works: " /> Is there a more elegant way to use EL in clay outside the known components, or would I need to build my own component? Thanks, Joost -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 2:15 AM To: user@shale.apache.org Subject: RE: Clay jsfid="form" not working >From: "JS Portal Support" <[EMAIL PROTECTED]> > > The s in s:form here is the myfaces sandbox, not shale, as you probably > already guessed. > My guess is that it has to do with command components you are using within the form. The "form" jsfid is the default JSF runtime component where "s:form" is enhanced to work with all the tomahawk bells-and- whistles. I'm not sure how it's related to the maven managed builds. Maybe it's a difference in the tomahawk or myfaces jar since maven will pull the latest snapshot? Gary > -Original Message- > From: JS Portal Support [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 31, 2007 3:31 PM > To: user@shale.apache.org > Subject: Clay jsfid="form" not working > > Hi, > > I just transitioned my projects over to use Maven. All works quite well and > I'm happy. However, I have a Clay form > allowbody="true"> in which all links end up coming back to the page the form > resides on. When I change to use jsfid="s:form", all works fine. Can this be > due to a missing Maven dependency on the core JSF jar? I used the > maven-myfaces-archetype to generate the project and thought that should > setup the dependencies properly. Or could it be due to the clay config > files? > > Does anyone have a clue what might cause this behaviour? > > Thanks, > Joost > > >
RE: Clay jsfid="form" not working
The s in s:form here is the myfaces sandbox, not shale, as you probably already guessed. -Original Message- From: JS Portal Support [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 3:31 PM To: user@shale.apache.org Subject: Clay jsfid="form" not working Hi, I just transitioned my projects over to use Maven. All works quite well and I'm happy. However, I have a Clay form in which all links end up coming back to the page the form resides on. When I change to use jsfid="s:form", all works fine. Can this be due to a missing Maven dependency on the core JSF jar? I used the maven-myfaces-archetype to generate the project and thought that should setup the dependencies properly. Or could it be due to the clay config files? Does anyone have a clue what might cause this behaviour? Thanks, Joost
Clay jsfid="form" not working
Hi, I just transitioned my projects over to use Maven. All works quite well and I'm happy. However, I have a Clay form in which all links end up coming back to the page the form resides on. When I change to use jsfid="s:form", all works fine. Can this be due to a missing Maven dependency on the core JSF jar? I used the maven-myfaces-archetype to generate the project and thought that should setup the dependencies properly. Or could it be due to the clay config files? Does anyone have a clue what might cause this behaviour? Thanks, Joost
RE: Remoting changes with viewState
>Why not just try: > >/dynamic/runableEntityHandler/getTaskExtraInfo.jsf I tried this initially and since that caused problems, I thought I'd follow the example from the shale-usecases. I changed it back and the problem persists. So I guess the problem must lie somewheer else than. Would you suggest raising this issue in the myfaces list? Thanks, Joost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Wednesday, May 23, 2007 8:27 AM To: user@shale.apache.org Subject: Re: Remoting changes with viewState I haven't heavily tested multiple JSF servlet mappings, but it seems likely that there might be issues in the JSF implementation itself with that. Since you are using prefix mapping for your resources, why not just try: /dynamic/runableEntityHandler/getTaskExtraInfo.jsf instead? Craig On 5/22/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using remoting and it works great! But unfortunately if I have a page > load partial content though remoting, the request seems to change the > underlying viewState of the JSF view. > > I'm using the : > > > > org.apache.shale.remoting.FACES_SERVLET_MAPPING_INDEX e> > 1 > > > To point to the *.resources mapping: > > > faces > *.jsf > > > faces > *.resources > > > When a call to my resource > /dynamic/runableEntityHandler/getTaskExtraInfo.resources is made my log > shows: > > exiting from lifecycle.execute in RESTORE_VIEW(1) because > getResponseComplete is true from one of the after listeners > exiting from lifecycle.execute in RENDER_RESPONSE(6) because > getResponseComplete is true from one of the before listeners > > When then I use my page navigation which points to a simple JSF navigation > rule, it reloads the current view in stead of navigating to the new page. > When tried a second time (without using the remoting) the navigation > succeeds. > > I have this need-to-click-twice-to-navigate in more situations and it must > have something to do with the underlying JSF viewState. I think there is a > concept here I'm missing, but I don't know what. Can anyone give me some > pointers as to where my problem lies? > > Thank you, > joost > >
Remoting changes with viewState
Hi, I'm using remoting and it works great! But unfortunately if I have a page load partial content though remoting, the request seems to change the underlying viewState of the JSF view. I'm using the : org.apache.shale.remoting.FACES_SERVLET_MAPPING_INDEX 1 To point to the *.resources mapping: faces *.jsf faces *.resources When a call to my resource /dynamic/runableEntityHandler/getTaskExtraInfo.resources is made my log shows: exiting from lifecycle.execute in RESTORE_VIEW(1) because getResponseComplete is true from one of the after listeners exiting from lifecycle.execute in RENDER_RESPONSE(6) because getResponseComplete is true from one of the before listeners When then I use my page navigation which points to a simple JSF navigation rule, it reloads the current view in stead of navigating to the new page. When tried a second time (without using the remoting) the navigation succeeds. I have this need-to-click-twice-to-navigate in more situations and it must have something to do with the underlying JSF viewState. I think there is a concept here I'm missing, but I don't know what. Can anyone give me some pointers as to where my problem lies? Thank you, joost
RE: AJAX and shale (sub)dialog
Craig, I got everything to work like I would want it to with an IFRAME (the shale-test-dialog-basic was very helpful). I was wondering however if it is possible to have a subdialog on top of the regular jsf navigation-rules, so that the jsf state will not be changed when a dialog is run on top of it though my IFRAME. The other option is obviously to change completely to dialog navigation. Thanks, Joost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Thursday, May 03, 2007 2:46 PM To: user@shale.apache.org Subject: Re: AJAX and shale (sub)dialog On 5/2/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > Craig, > > First off, thanks for your elaborate explanation. I believe I'm slowly > starting to get a better grasp of all subtleties involved. Remoting seems > great for a situation where only one call to the server needs to be made > without state saving. > > - Is it possible to make a remoting call to a regular *.jsf page which may > contain commandLink's and other jsf components? > > As for the ContentPane I must apologize as by popup I did not mean a new > window, but a floating div acting as a dojo ContentPane (see attachement). > > - In this situation, is it possible to start a subdialog from the floating > ConetntPane without affecting the underlying page? > The mailing list blocks most attachments, so I didn't see what you attached ... but Shale Dialogs has two restrictions to be aware of: * Only one active dialog per window or frame. If the Dojo ContentPane used an IFrame, this might not be a problem, but if it is just a that is getting dynamically updated, then this won't work. * Shale Dialog assumes that the popup UI is actually composed with JSF components. Since that is not the case here, it seems like Remoting might be a better solution. Craig > Thanks, > Joost > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig > McClanahan > Sent: Thursday, May 03, 2007 1:52 PM > To: user@shale.apache.org > Subject: Re: AJAX and shale (sub)dialog > > On 5/2/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > > Hi, > > > > What I have is a floating dojo ContentPane (popup) that loads its content > > though AJAX. > > > > What I wish to achieve is for this ContentPane to handle multiple > > requests/responses without interfering with the underlying view state of > the > > actual non-AJAX jsf page. > > > > From what I understand JSF can solve this by using a phaseListner, but > > shale's (sub)dialog seems to be stronger and better suited for the job. As > > I'm new to this area I might be off and wrong here. > > > > Before I start coding away and solve the problems I run into, I would love > > to see some examples or documentation laying out how this can be done > > elegantly. Can anyone point me in the right direction? > > > > The dialog support will work nicely for you if you want the content of > the popup to itself be composed with JSF components. Because the > popup is an independent window, it has its own component tree > independent of the main page, and goes through its own lifecycle > separately. The dialog system even knows how to have separate dialogs > in progress in each window without getting confused. There are > samples of how to start such popups in the shale-test-dialog-basic and > shale-test-dialog-scxml sample apps. > > In your case, however, it sounds like you want to let Dojo deal with > the UI in the popup, and just need a way to provide the back end > services for the Ajax callbacks. For that use case, I would also take > a look at using Shale Remoting for the callbacks. Among other things, > this will let you map a request URL (originated by an XMLHttpRequest > from the client) directly to a public method on a particular managed > bean. These requests do not have a component tree of their own (and > they don't affect the component tree for the main view). The point > here is to let you leverage the non-UI server side features of JSF > (particularly managed beans and EL evaluation) for Ajax callbacks. > > Besides the documentation on the Shale Remoting page itself, this > technique was used inside the Autocomplete Text Field component in the > Blueprints Catalog[1], which can serve as a pretty good coding example > for use within an application as well. > > Craig > > [1] https://bpcatalog.dev.java.net/ > > > > Regards, > > Joost > > > > > >
RE: AJAX and shale (sub)dialog
Craig, First off, thanks for your elaborate explanation. I believe I'm slowly starting to get a better grasp of all subtleties involved. Remoting seems great for a situation where only one call to the server needs to be made without state saving. - Is it possible to make a remoting call to a regular *.jsf page which may contain commandLink's and other jsf components? As for the ContentPane I must apologize as by popup I did not mean a new window, but a floating div acting as a dojo ContentPane (see attachement). - In this situation, is it possible to start a subdialog from the floating ConetntPane without affecting the underlying page? Thanks, Joost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Thursday, May 03, 2007 1:52 PM To: user@shale.apache.org Subject: Re: AJAX and shale (sub)dialog On 5/2/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > Hi, > > What I have is a floating dojo ContentPane (popup) that loads its content > though AJAX. > > What I wish to achieve is for this ContentPane to handle multiple > requests/responses without interfering with the underlying view state of the > actual non-AJAX jsf page. > > From what I understand JSF can solve this by using a phaseListner, but > shale's (sub)dialog seems to be stronger and better suited for the job. As > I'm new to this area I might be off and wrong here. > > Before I start coding away and solve the problems I run into, I would love > to see some examples or documentation laying out how this can be done > elegantly. Can anyone point me in the right direction? > The dialog support will work nicely for you if you want the content of the popup to itself be composed with JSF components. Because the popup is an independent window, it has its own component tree independent of the main page, and goes through its own lifecycle separately. The dialog system even knows how to have separate dialogs in progress in each window without getting confused. There are samples of how to start such popups in the shale-test-dialog-basic and shale-test-dialog-scxml sample apps. In your case, however, it sounds like you want to let Dojo deal with the UI in the popup, and just need a way to provide the back end services for the Ajax callbacks. For that use case, I would also take a look at using Shale Remoting for the callbacks. Among other things, this will let you map a request URL (originated by an XMLHttpRequest from the client) directly to a public method on a particular managed bean. These requests do not have a component tree of their own (and they don't affect the component tree for the main view). The point here is to let you leverage the non-UI server side features of JSF (particularly managed beans and EL evaluation) for Ajax callbacks. Besides the documentation on the Shale Remoting page itself, this technique was used inside the Autocomplete Text Field component in the Blueprints Catalog[1], which can serve as a pretty good coding example for use within an application as well. Craig [1] https://bpcatalog.dev.java.net/ > Regards, > Joost > >
AJAX and shale (sub)dialog
Hi, What I have is a floating dojo ContentPane (popup) that loads its content though AJAX. What I wish to achieve is for this ContentPane to handle multiple requests/responses without interfering with the underlying view state of the actual non-AJAX jsf page. >From what I understand JSF can solve this by using a phaseListner, but shale's (sub)dialog seems to be stronger and better suited for the job. As I'm new to this area I might be off and wrong here. Before I start coding away and solve the problems I run into, I would love to see some examples or documentation laying out how this can be done elegantly. Can anyone point me in the right direction? Regards, Joost
navigate between http and https
Hi, Does shale dialog, any of the other shale components or maybe myfaces have the ability to define if the requests should go over http or https. Up to now the only control over this I found was with the tomahawk sanbox form (scheme). I'm looking for a way to get a request from http, handle it and redirect to the new page over https or the other way around. What would be the best way to handle this? Joost Schouten PS: Those of you in Amsterdam, I hope the conference will be a good. By the looks of it Queensday must have been great. If I wouldn't be living in New Zealand for the year I would have loved to come and meet some of the people who have been so helpful over the last couple of months.
RE: SV: SV: using tld2claycfg
Dear Hermod, Hermod, Hermod, I got it to work! Thanks a lot! For reference I will lay out what I did. I did not have the dependency on tomahawk in the Tld2ClayCfg/test/pom.xml because I did not need the clay cfg for it. Adding it did cause the java.lang.NoClassDefFoundError to go away. It still didn't build though as it couldn't find the: Missing: -- 1) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.5-SNAPSHOT Your comments on the settings.xml made me do a little search and I found [1] explaining that you need to add repositories to your project to use SNAPSHOT releases. I haven't figured out how to add these repositories globally in my settings (any pointers would be great?) but adding them to my project like [2] did the trick. I had to play a bit with artifactId's and versions but managed to figure those out by browsing what was available at [3]. I can finally start and use my subForms which what I needed this for in the first place. I'm happy to have been introduced to maven and am contemplating integration in my own projects. I hope you have had a good weekend. But judging by your response time you, like me, don't differentiate between weekdays and a weekends ;-) Cheers, Joost [1] http://wiki.apache.org/myfaces/Using_MyFaces_in_a_Project_built_with_Maven [2] true false myfaces.staging MyFaces Staging Repository http://myfaces.zones.apache.org/dist/maven-repository true apache.snapshots Apache Snapshot Repository http://people.apache.org/repo/m2-snapshot-repository [3] http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/toma hawk/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 9:40 PM To: [EMAIL PROTECTED] Subject: FW: SV: SV: using tld2claycfg Hi Looks like my mails are still delayed, so I'm sending it directly Hermod -Original Message- From: Opstvedt, Hermod Sent: Monday, April 23, 2007 8:45 AM To: 'user@shale.apache.org' Subject: RE: SV: SV: using tld2claycfg Hi Have you declared the dependency on tomahawk? Here is a sample to consider: .. org.apache.shale Tld2ClayCfgMojo 1.0-SNAPSHOT convert tld generate-resources convert META-INF/tomahawk.tld 1.1.6-SNAPSHOT (?i).*Listener.*,(?i).*Validate.*,(?i).*Convert.* (?i).*Listener.*,(?i).*Validate.*,(?i).*Convert.* .. org.apache.myfaces.tomahawk tomahawk 1.1.6-SNAPSHOT Actually if you have your (Maven2) settings.xml file set up correct you should not need to build any of the MyFaces or Tomahawk stuff your self, because it will get downloaded. A trick is to use mvn -U clean installl Hermod -Original Message- From: JS Portal Support [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 5:16 AM To: user@shale.apache.org Subject: RE: SV: SV: using tld2claycfg Hi, Thnaks, that helped me and I think I'm almost there. I'm starting to understand maven e bit. I managed to get to the last step successfully, but there I get the error show below [1]. It seems to me I probably don't have myfacses-tomahawk properly installed in my repository. Any clues? To get to this point I had to have maven install a few things like tomahawk and myfaces. But since I've just been working on one machine to build and deploy through ant, both subversion and maven are new to me. I don't quite get how I can simply install all of myfaces including the subprojects to my local repository. Is there a step-by-step guide which lines this out; not assuming any prior knowledge of svn and mvn? I've been spending a few days on just trying to use a s:subForm with clay. Learning a lot thought ;-) Thanks, Joost [1]the error: C:\Program Files\Java\tld2claycfg\test>mvn clean install [INFO] Scanning for projects... [INFO] - --- [INFO] Building Tld2ClayCfg Maven testapplication [INFO]task-segment: [clean, install] [INFO] - --- [INFO] [clean:clean] [INFO] Deleting directory C:\Program Files\Java\tld2claycfg\test\target [INFO] Deleting directory C:\Program Files\Java\tld2claycfg\test\target\classes [INFO] Deleting directory C:\Program Files\Java\tld2claycfg\test\target\test-cla sses [INFO] [Tld2ClayCfgMojo:convert {execution: convert tld}] [INFO] Generate resources in C:\Program Files\Java\tld2claycfg\test\t
RE: SV: SV: using tld2claycfg
Craig, Thanks but no luck. I get the same problem when I do a mvn clean install from C:\tld2claycfg\test The thing I don't get is that I would expect an exception like I got before. Something like: >Missing: >-- >1) org.apache.shale:Tld2ClayCfg:jar:1.0-SNAPSHOT And not a java.lang.NoClassDefFoundError. I hope you guys have some more pointers. In the mean time I'll keep trying. Cuz with persistence, it always works in the end ;-) Joost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Monday, April 23, 2007 5:11 PM To: user@shale.apache.org Subject: Re: SV: SV: using tld2claycfg Joost, Could you try one "off the wall" idea for me? I note from the trace below that the directory path to the location you are using has spaces in the name ("Program Files"). Could you try doing this in a directory that does *not* have spaces and see if you get the same behavior? I have seen lots of very wierd problems where this has been the root cause. (Of course, if it works after trying this, there's clearly a bug in path handling -- the next step will be to figure out where that is.) Craig On 4/22/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > Hi, > > Thnaks, that helped me and I think I'm almost there. I'm starting to > understand maven e bit. I managed to get to the last step successfully, but > there I get the error show below [1]. It seems to me I probably don't have > myfacses-tomahawk properly installed in my repository. Any clues? > > To get to this point I had to have maven install a few things like tomahawk > and myfaces. But since I've just been working on one machine to build and > deploy through ant, both subversion and maven are new to me. I don't quite > get how I can simply install all of myfaces including the subprojects to my > local repository. Is there a step-by-step guide which lines this out; not > assuming any prior knowledge of svn and mvn? > > I've been spending a few days on just trying to use a s:subForm with clay. > Learning a lot thought ;-) > > Thanks, > Joost > > > [1]the error: > > C:\Program Files\Java\tld2claycfg\test>mvn clean install > [INFO] Scanning for projects... > [INFO] > - > --- > [INFO] Building Tld2ClayCfg Maven testapplication > [INFO]task-segment: [clean, install] > [INFO] > - > --- > [INFO] [clean:clean] > [INFO] Deleting directory C:\Program Files\Java\tld2claycfg\test\target > [INFO] Deleting directory C:\Program > Files\Java\tld2claycfg\test\target\classes > [INFO] Deleting directory C:\Program > Files\Java\tld2claycfg\test\target\test-cla > sses > [INFO] [Tld2ClayCfgMojo:convert {execution: convert tld}] > [INFO] Generate resources in C:\Program Files\Java\tld2claycfg\test\target > [INFO] Got: 1 tlds > [INFO] Converting: META-INF/myfaces_sandbox.tld > [INFO] > > [ERROR] FATAL ERROR > [INFO] > > [INFO] org/apache/myfaces/shared_tomahawk/taglib/UIComponentTagBase > [INFO] > > [INFO] Trace > java.lang.NoClassDefFoundError: > org/apache/myfaces/shared_tomahawk/taglib/UIComp > onentTagBase > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 > 4) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at > org.apache.shale.clay.util.TldToClayconfig.isUIComponentTag(TldToClay > config.java:560) > at > org.apache.shale.clay.util.TldToClayconfig.writeConfigFile(TldToClayc > onfig.java:447) > at > org.apache.shale.clay.util.TldToClayconfig.convert(TldToClayconfig.ja > va:275) > at org.apache.shale.Tld2ClayCfgMojo.execute(Tld2ClayCfgMojo.java:81) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi > nManager.java:443) > at > org.apache.maven
RE: SV: SV: using tld2claycfg
[INFO] Final Memory: 5M/10M [INFO] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 10:39 PM To: user@shale.apache.org Subject: RE: SV: SV: using tld2claycfg Hi Stupid me :( I forgot that you also have to build the tool it self also (The mojo uses it). Downloa the tool [1] and build it using mvn clean install first. (Somehow Iassumed that everybody does like me and generate everything my self) [1] https://svn.apache.org/repos/asf/shale/tools/trunk/tld2claycfg Hermod (Hoping this will apear on the list before christmas) -Original Message- From: Torsten Krah [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 11:58 AM To: [EMAIL PROTECTED] Cc: user@shale.apache.org Subject: Re: SV: SV: using tld2claycfg mojo folder. Torsten Am Dienstag, den 17.04.2007, 22:52 +0200 schrieb Hermod Opstvedt: > Hi > > Where did you run this (folder?) > > Hermod > > > -Opprinnelig melding- > Fra: Torsten Krah [mailto:[EMAIL PROTECTED] > Sendt: 17. april 2007 15:23 > Til: [EMAIL PROTECTED] > Kopi: user@shale.apache.org > Emne: Re: SV: using tld2claycfg > > It seems that building anything with maven is a real pain to me. > > Java 1.5, Maven 2.0.5. > > mvn clean install > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Failed to resolve artifact. > > Missing: > -- > 1) org.apache.shale:Tld2ClayCfg:jar:1.0-SNAPSHOT > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.apache.shale > -DartifactId=Tld2ClayCfg \ > -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) org.apache.shale:Tld2ClayCfgMojo:maven-plugin:1.0-SNAPSHOT > 2) org.apache.shale:Tld2ClayCfg:jar:1.0-SNAPSHOT > > -- > 1 required artifact is missing. > > for artifact: > org.apache.shale:Tld2ClayCfgMojo:maven-plugin:1.0-SNAPSHOT > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > > [INFO] > > [INFO] For more information, run Maven with the -e switch > [INFO] > > [INFO] Total time: 7 seconds > [INFO] Finished at: Tue Apr 17 15:21:30 CEST 2007 > [INFO] Final Memory: 6M/11M > [INFO] > > > > Hints? > > Torsten > > Am Dienstag, den 17.04.2007, 15:09 +0200 schrieb Hermod Opstvedt: > > Hi > > > > I answered this yesterday, but it seems that mail sent from work uses 4-5 > > days to reach the list. > > > > > > Download the source from[1] > > > > Build the Maven plugin in the folder mojo by using mvn clean install > > In the test folder open the Mavne POM and tweak it according to what you > > want (the tld section and the dependency section). > > Run mvn clean install in the test folder. The generated jar in the target > > folder contains the Clay config files you want. > > > > [1] https://svn.apache.org/repos/asf/shale/maven/trunk/tld2claycfg > > > > Hermod > > > > > > -Opprinnelig melding- > > Fra: Torsten Krah [mailto:[EMAIL PROTECTED] > > Sendt: 17. april 2007 13:43 > > Til: user@shale.apache.org > > Emne: Re: using tld2claycfg > > > > I guess Hermod does, because he made it. > > > > My problem is, i cant build the tool with maven, maybe i am doing > > something wrong - so Hermod, can you give us a short intro what to do to > > build it after svn checkout and how to create the clay config files? > > > > Torsten > > > > Am Sonntag, den 15.04.2007, 12:40 +1200 schrieb JS Portal Support: > > > Hi, > > > > > > I've been trying to find some documentation on how to use the > tld2claycfg. > > I > > > want to use some myfaces sandbox components but can't find the clay > config > > > file for it and understand you can create it with tld2claycfg. Does > anyone > > > know how and where? > > > > > > Thanks, > > > Joost Schouten > > > > > > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
RE: using tld2claycfg
Dear Hermod, Thank you for your help. When running maven on the mojo folder like you explained I get the following error. The same reason also keeps me from succeeding in the mvn clean install on the test folder: --the error--- [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.shale:Tld2ClayCfg:jar:1.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.shale -DartifactId=Tld2ClayC fg \ -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.apache.shale:Tld2ClayCfgMojo:maven-plugin:1.0-SNAPSHOT 2) org.apache.shale:Tld2ClayCfg:jar:1.0-SNAPSHOT -- 1 required artifact is missing. for artifact: org.apache.shale:Tld2ClayCfgMojo:maven-plugin:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) ---end error--- Unfortunately I am new to Maven so don't fully grasp its purpose and workings. It seems like I need a missing Tld2ClayCfg jar. Could you point me in the right direction please? Thank you, Joost -Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 1:09 AM To: user@shale.apache.org Subject: SV: using tld2claycfg Hi I answered this yesterday, but it seems that mail sent from work uses 4-5 days to reach the list. Download the source from[1] Build the Maven plugin in the folder mojo by using mvn clean install In the test folder open the Mavne POM and tweak it according to what you want (the tld section and the dependency section). Run mvn clean install in the test folder. The generated jar in the target folder contains the Clay config files you want. [1] https://svn.apache.org/repos/asf/shale/maven/trunk/tld2claycfg Hermod -Opprinnelig melding- Fra: Torsten Krah [mailto:[EMAIL PROTECTED] Sendt: 17. april 2007 13:43 Til: user@shale.apache.org Emne: Re: using tld2claycfg I guess Hermod does, because he made it. My problem is, i cant build the tool with maven, maybe i am doing something wrong - so Hermod, can you give us a short intro what to do to build it after svn checkout and how to create the clay config files? Torsten Am Sonntag, den 15.04.2007, 12:40 +1200 schrieb JS Portal Support: > Hi, > > I've been trying to find some documentation on how to use the tld2claycfg. I > want to use some myfaces sandbox components but can't find the clay config > file for it and understand you can create it with tld2claycfg. Does anyone > know how and where? > > Thanks, > Joost Schouten > >
RE: Basic Dialog Manager
> > - I'd like to pass GET parameters between the dialog pages. Is it > possible to use EL expressions in the viewId attributes? Please compare > to: > http://typo.ars-subtilior.com/articles/2007/01/24/how-to-make-jsf-navigation -rules-more-dynamic >That's an interesting idea, and would be useful for standard JSF >navigation as well as inside dialogs. The best thing to do would be >to create a new ticket[1] documenting this idea so it doesn't get >lost. I went ahead and created: https://issues.apache.org/struts/browse/SHALE-438 Regards, Joost
using tld2claycfg
Hi, I've been trying to find some documentation on how to use the tld2claycfg. I want to use some myfaces sandbox components but can't find the clay config file for it and understand you can create it with tld2claycfg. Does anyone know how and where? Thanks, Joost Schouten
RE: Basic Dialog Manager
>> >> - I'd like to pass GET parameters between the dialog pages. Is it >> possible to use EL expressions in the viewId attributes? Please compare >> to: >> http://typo.ars-subtilior.com/articles/2007/01/24/how-to-make-jsf->navigatio n-rules-more-dynamic >That's an interesting idea, and would be useful for standard JSF >navigation as well as inside dialogs. The best thing to do would be >to create a new ticket[1] documenting this idea so it doesn't get >lost. This is exactly what I'm after and tried to achieve in my previous messages to this list: "Alternate ViewController" but haven't been able to achieve. Matthias, please let me(us) know when you created a ticket for this feature, or let me know, and I can do it. Regards, Joost
RE: Alternate ViewController
Gary, Thank you for your help. Some things are not totally clear to me though, so excuse my ignorance in these matters. When you say: > The shale-dialog does this sort of thing [2] Do you mean it already does it in some way like: Which I tried and it doesn't recognize the the EL and just redirects to the viewed as a string. The description with your link [3] seems to describe exactly what I need, but when implemented, it doesn't behave any different from when I don't use these definitions. So I guess my question is, do I go and extend org/apache/myfaces/application/NavigationHandlerImpl.java and build a way to recognize the EL in my viewId (how would be the next question) or is it a matter of configuring my faces-config.xml to use the correct handlers that can already do this? Thank you for your patience with my coming to grips with the issues at hand, Joost -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Thursday, April 12, 2007 2:30 AM To: user@shale.apache.org Subject: Re: Alternate ViewController >From: "JS Portal Support" <[EMAIL PROTECTED]> > > Hi, > > Though this primarily is a jsf question, I place it here since it might > involve the Clay viewhandler. > > I wish to implement a viewhandler that can understand the following > navigation rule, and followed the steps as described in [1] > > > > * > > go_contactus > /#{sessionVars.locale}/contactus.jsf > > > > > I extended the org.apache.shale.clay.faces.ClayViewHandler and just added > the getActionURL(FacesContext context, String viewId). Unfortunately it is > not working. The page just reloads itself and that's all. > > Is there already a system in place that does this as it seems to me a > usefull feature. If not, what am I doing wrong, and should I be extending > the ClayViewHandler or the MyFaces ViewHandler? > You are not using the best extension point. The navigation handler is the place I'd try adding this extension [1]. The shale-dialog does this sort of thing [2]. Like the other JSF extension points, you will want to decorate the original that will be passed via the custom navigation handler's constructor. The custom navigation handler gets registered in the faces config [3]. Gary [1] http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apach e/myfaces/application/NavigationHandlerImpl.java?view=markup [2] http://svn.apache.org/viewvc/shale/framework/trunk/shale-dialog/src/main/jav a/org/apache/shale/dialog/faces/DialogNavigationHandler.java?view=markup [3] http://svn.apache.org/viewvc/shale/framework/trunk/shale-dialog/src/main/res ources/META-INF/faces-config.xml?view=markup > Thank you, > Joost Schouten > Dasstraat 21 > 2623CB Delft > the Netherlands > > [1] > http://typo.ars-subtilior.com/articles/2007/01/24/how-to-make-jsf-navigation > -rules-more-dynamic > >
Alternate ViewController
Hi, Though this primarily is a jsf question, I place it here since it might involve the Clay viewhandler. I wish to implement a viewhandler that can understand the following navigation rule, and followed the steps as described in [1] * go_contactus /#{sessionVars.locale}/contactus.jsf I extended the org.apache.shale.clay.faces.ClayViewHandler and just added the getActionURL(FacesContext context, String viewId). Unfortunately it is not working. The page just reloads itself and that's all. Is there already a system in place that does this as it seems to me a usefull feature. If not, what am I doing wrong, and should I be extending the ClayViewHandler or the MyFaces ViewHandler? Thank you, Joost Schouten Dasstraat 21 2623CB Delft the Netherlands [1] http://typo.ars-subtilior.com/articles/2007/01/24/how-to-make-jsf-navigation -rules-more-dynamic
RE: Clay nested templates
Hermod, Gary, Thanks a lot for your help. So it was actually easier than I thought. I'm really falling in love with Clay. Using jsp, jsf and html together in an extendable matter like this really makes my life easier. I can use a lot of building blocks from my previous versions. It also makes phasing JSP out possible in stead of having to do a complete changeover at once. And extending views... gotta love it! Cheers, Joost -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 11, 2007 5:28 AM To: user@shale.apache.org Subject: Re: Clay nested templates >Hi, > >I'm experimenting with Clay and I like it. A few things are not quite clear >to me though. I can make my page /user_calendar.jsf work with the following >clay config: > > > > > > > > > > > > > > > > > >But I wish to insert another template inside a template, and thought the >following might work: > > > > > > > > > > > The XML above shouldn't validate to the clay DTD [1]. Try adding all symbols under the "symbols" node. The symbols are passed on to nested layers of included templates. There is an example of this in the shale-usecases. A "table" template [2] incudes another markup template [3] that passes symbols to XML component definitions. The component definitions are passed symbols through 2 layers of markup templates. [1] http://shale.apache.org/dtds/clay-config_1_0.dtd [2]http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-clay- usecases/src/main/webapp/symbols/businessPerson.html?view=markup [3] http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-clay-use cases/src/main/resources/org/apache/shale/usecases/symbols/inputTextWidget.h tml?view=markup >but it doesn't. I get the parse error: >java.lang.NoSuchMethodException: No such accessible method: addSymbol() on >object: org.apache.shale.clay.config.beans.SymbolBean. > >I guess I will need to create an Element for the inserted template, but >tried different approaches but can't seem to get it to work. I could >obviously create a second complete template hardcoding >/templates/column_template.html in /templates/main_template.html, but that >defeats the Clay purpose. > >Thank you, >joost Gary
Clay nested templates
Hi, I'm experimenting with Clay and I like it. A few things are not quite clear to me though. I can make my page /user_calendar.jsf work with the following clay config: But I wish to insert another template inside a template, and thought the following might work: but it doesn't. I get the parse error: java.lang.NoSuchMethodException: No such accessible method: addSymbol() on object: org.apache.shale.clay.config.beans.SymbolBean. I guess I will need to create an Element for the inserted template, but tried different approaches but can't seem to get it to work. I could obviously create a second complete template hardcoding /templates/column_template.html in /templates/main_template.html, but that defeats the Clay purpose. Thank you, joost
Link from within tiled page only successful on second try
Hi there, I noticed one misconception I had about tiles with shale. I thought I could have a backing bean for each tile, but it seems you only should have one backing bean per tiles (layout) definition. So that seems to be working. Now on the other hand I experience some strange behaviour. When I click a link from within a tiled page, it gets refreshed and serves up the same page again. Then the second time I click the same page, the navigation is successful. The same link outside a tiled page works as expected. The navigation is: * go_user_dashboard /user_dashboard_view Link: My logs do show that the backing bean for the /user_dashboard_view is only initiated upon the second request of the view when accessed from within a tiled view. The same goes for a navigating to a non-tiled page from within a tiled page. Any clues as to what I'm doing wrong? Thanks, Joost JS Portal - Support Dasstraat 21 2623CB Delft the Netherlands W: www.jsportal.com -Original Message- From: JS Portal Support [mailto:[EMAIL PROTECTED] Sent: Thursday, March 22, 2007 10:48 AM To: user@shale.apache.org Subject: RE: prerender() not called on my tiles As I'm still not totally committed to tiles so can you guys give me the pro's and cons of tiles, Clay and facelets or provide me to a page laying out the differences. I am committed to shale and MyFaces. Cheers, JS Portal - Support Dasstraat 21 2623CB Delft the Netherlands W: www.jsportal.com -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Thursday, March 22, 2007 6:02 AM To: user@shale.apache.org Subject: Re: prerender() not called on my tiles >From: "Greg Reddin" <[EMAIL PROTECTED]> > > On 3/20/07, Gary VanMatre wrote: > > > > We sure need a tiles example app for Shale. > > > Yeah, one of these days I really need to start using Tiles 2 with a JSF > app. I'm really behind the curve on that one :-) > Well, if your using facelets, you are probably ahead of the curve when it comes to JSF. Really ahead of the curve if you are using Clay :-) On a serious note, I wonder how tiles and JSF 1.2 will work out since the rendering issues have been fixed in JSF/JSP. I just have not had the time to check it out. > Greg Gary
RE: prerender() not called on my tiles
As I'm still not totally committed to tiles so can you guys give me the pro's and cons of tiles, Clay and facelets or provide me to a page laying out the differences. I am committed to shale and MyFaces. Cheers, JS Portal - Support Dasstraat 21 2623CB Delft the Netherlands W: www.jsportal.com -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Thursday, March 22, 2007 6:02 AM To: user@shale.apache.org Subject: Re: prerender() not called on my tiles >From: "Greg Reddin" <[EMAIL PROTECTED]> > > On 3/20/07, Gary VanMatre wrote: > > > > We sure need a tiles example app for Shale. > > > Yeah, one of these days I really need to start using Tiles 2 with a JSF > app. I'm really behind the curve on that one :-) > Well, if your using facelets, you are probably ahead of the curve when it comes to JSF. Really ahead of the curve if you are using Clay :-) On a serious note, I wonder how tiles and JSF 1.2 will work out since the rendering issues have been fixed in JSF/JSP. I just have not had the time to check it out. > Greg Gary
RE: prerender() not called on my tiles
Hi, I created https://issues.apache.org/struts/browse/SHALE-429 and attached some example files. A little tweak of the faces-config.xml and tiles.xml should be all you need to try it out. I hope this all makes sense and look forward to your thoughts as I'm lost. Cheers, JS Portal - Support Dasstraat 21 2623CB Delft the NetherlandsW: www.jsportal.com -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 21, 2007 2:51 PM To: user@shale.apache.org Subject: RE: prerender() not called on my tiles >From: "JS Portal Support" <[EMAIL PROTECTED]> > > Hi, > > No messages and no errors. If I make a direct call to my tile like > /jsp/user_dashboard.jsf, it does initialize the backing bean properly. This > does lead me to believe it is a tiles related thing. I use shale 1.1.0 and > the tiles that ships with it. > Could you please create a JIRA ticket an add you example. We sure need a tiles example app for Shale. I can't shoot from the hip on this one but an example would help us see what's going on. > Cheers, > JS Portal - Support > Dasstraat 21 > 2623CB Delft > the Netherlands > W: www.jsportal.com > Gary > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 20, 2007 6:58 PM > To: user@shale.apache.org > Subject: RE: prerender() not called on my tiles > > Hi > > Have you made sure that there is a in case of validation > errors. Also have you checked your servers log files for any errors? > > Hermod > > -Original Message- > From: JS Portal Support [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 20, 2007 7:05 AM > To: user@shale.apache.org > Subject: RE: prerender() not called on my tiles > > > No they seem not to be called either. Any jsp includes within the tiles are > handled correctly and all lifecycle methods are called. > > Cheers, > JS Portal - Support > Dasstraat 21 > 2623CB Delft > the Netherlands > W: www.jsportal.com > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 20, 2007 5:40 PM > To: user@shale.apache.org > Subject: RE: prerender() not called on my tiles > > Hi > > Are the other lifecycle methods beeing called (init etc.) ? > > Hermod > > -Original Message- > From: JS Portal Support [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 20, 2007 6:26 AM > To: user@shale.apache.org > Subject: prerender() not called on my tiles > > > Hi, > > I am combining shale and tiles. When I navigate to my tiles definition > /user_dashboard_view through my navigation-rule go_user_dashboard called by > a commanLink action, I find that the backing beans of the respective tiles > (/jsp/user_dashboard.jsp)are not instantiated. Or at least, the prerender() > is not called. > > Any clues? > > Regards, > Joost > > > --Tiles.xml (partly)- > > template="/jsp/tiles/layouts/loggedLayout.jsp"> > > > > > > > > > > > > --faces-config.xml (partly)-- > > jsp$user_dashboard > > com.jsportal.projectportal.web.JSFaces.jsp.Dashboard> naged-bean-class> > request > > > > > * > > > go_user_dashboard > /user_dashboard_view > > > > go_user_profile > /user_profile_view > > > > go_user_calendar > /user_calendar_view > > > > go_search > /search_view > > > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > This email with attachments is solely for the use of the individual or > entity to whom it is addressed. Please also be aware that DnB NOR cannot > accept any payment orders or other legally binding correspondence with > customers as a part of an email. > > This email message has been virus checked by the anti virus programs used > in the DnB NOR Group. > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > > >
RE: prerender() not called on my tiles
Hi, No messages and no errors. If I make a direct call to my tile like /jsp/user_dashboard.jsf, it does initialize the backing bean properly. This does lead me to believe it is a tiles related thing. I use shale 1.1.0 and the tiles that ships with it. Cheers, JS Portal - Support Dasstraat 21 2623CB Delft the Netherlands W: www.jsportal.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 6:58 PM To: user@shale.apache.org Subject: RE: prerender() not called on my tiles Hi Have you made sure that there is a in case of validation errors. Also have you checked your servers log files for any errors? Hermod -Original Message- From: JS Portal Support [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 7:05 AM To: user@shale.apache.org Subject: RE: prerender() not called on my tiles No they seem not to be called either. Any jsp includes within the tiles are handled correctly and all lifecycle methods are called. Cheers, JS Portal - Support Dasstraat 21 2623CB Delft the Netherlands W: www.jsportal.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 5:40 PM To: user@shale.apache.org Subject: RE: prerender() not called on my tiles Hi Are the other lifecycle methods beeing called (init etc.) ? Hermod -Original Message- From: JS Portal Support [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 6:26 AM To: user@shale.apache.org Subject: prerender() not called on my tiles Hi, I am combining shale and tiles. When I navigate to my tiles definition /user_dashboard_view through my navigation-rule go_user_dashboard called by a commanLink action, I find that the backing beans of the respective tiles (/jsp/user_dashboard.jsp)are not instantiated. Or at least, the prerender() is not called. Any clues? Regards, Joost --Tiles.xml (partly)- --faces-config.xml (partly)-- jsp$user_dashboard com.jsportal.projectportal.web.JSFaces.jsp.Dashboard request * go_user_dashboard /user_dashboard_view go_user_profile /user_profile_view go_user_calendar /user_calendar_view go_search /search_view * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
RE: prerender() not called on my tiles
No they seem not to be called either. Any jsp includes within the tiles are handled correctly and all lifecycle methods are called. Cheers, JS Portal - Support Dasstraat 21 2623CB Delft the Netherlands W: www.jsportal.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 5:40 PM To: user@shale.apache.org Subject: RE: prerender() not called on my tiles Hi Are the other lifecycle methods beeing called (init etc.) ? Hermod -Original Message- From: JS Portal Support [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 6:26 AM To: user@shale.apache.org Subject: prerender() not called on my tiles Hi, I am combining shale and tiles. When I navigate to my tiles definition /user_dashboard_view through my navigation-rule go_user_dashboard called by a commanLink action, I find that the backing beans of the respective tiles (/jsp/user_dashboard.jsp)are not instantiated. Or at least, the prerender() is not called. Any clues? Regards, Joost --Tiles.xml (partly)- --faces-config.xml (partly)-- jsp$user_dashboard com.jsportal.projectportal.web.JSFaces.jsp.Dashboard request * go_user_dashboard /user_dashboard_view go_user_profile /user_profile_view go_user_calendar /user_calendar_view go_search /search_view * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
prerender() not called on my tiles
Hi, I am combining shale and tiles. When I navigate to my tiles definition /user_dashboard_view through my navigation-rule go_user_dashboard called by a commanLink action, I find that the backing beans of the respective tiles (/jsp/user_dashboard.jsp)are not instantiated. Or at least, the prerender() is not called. Any clues? Regards, Joost --Tiles.xml (partly)- --faces-config.xml (partly)-- jsp$user_dashboard com.jsportal.projectportal.web.JSFaces.jsp.Dashboard request * go_user_dashboard /user_dashboard_view go_user_profile /user_profile_view go_user_calendar /user_calendar_view go_search /search_view
RE: tiles integration error
Thanks Dick! I finally got it to work! Just one more architecture question. (I think this will show my tiles ignorance though ;-) Do I generate a definition for every combination of tiles? So let's say I want to link to my dashboard and afterwards to my profile page. The only thing that makes these two pages different is their Or Or is there a way to tell tiles to browse to my definition and populate the content with a specific tile in the link to the definition? I already like tiles if I would have to make a definition for each view. I would like to marry it if it would allow me the second option. Thank you, Joost -Original Message- From: Dick Starr [mailto:[EMAIL PROTECTED] Sent: Sunday, February 11, 2007 5:03 AM To: user@shale.apache.org; user@shale.apache.org Subject: RE: tiles integration error <%-- starraLayout.jsp 2007-01-11 RJS. New. --%> <%@ include file="/jspf/common/taglibs.jsp" %> <%@ include file="/jspf/common/messages.jsp" %> <%-- Layout Tiles This layout create a html page with and tags. It render a header, left menu, body and footer tile. @param title String use in page title @param header: Header tile (jsp url or definition name) @param menuBar: Menu Bar @param body: Body @param footer: Footer --%> " rel="stylesheet" type="text/css"/> "/> Here you are. I am using Tiles from "shale-framework-1.1.0-SNAPSHOT/lib" (Shale 20070207). Dick
RE: tiles integration error
This is usefull. Adding Greg's web.xml tags solved my initial problem, which leads me to believe that I'm using a newer version of tiles than Dick is using. Still, I am very curious to see Dick's /tiles/layouts/starraLayout.jsp (or a little part of it to see how you define the tiles tags). I guess I'm still struggling a bit with the entire architecture of tiles as I'm confused by the different versions. Also, I can't seem to download the latest Tiles from http://www.apache.org/dyn/closer.cgi/tiles/binaries/tiles-2.0.0-bin.zip nor can I subscribe to the [EMAIL PROTECTED] mailing list. Does anyone know why? Thanks a lot for your persistent help. Regards, Joost -Original Message- From: Dick Starr [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 4:14 AM To: user@shale.apache.org; user@shale.apache.org Subject: RE: tiles integration error I am now using yesterday's snapshot. My web.xml has: definitions-config /WEB-INF/conf/tiles.xml org.apache.tiles.listener.TilesListener and my faces-config.xml has: org.apache.shale.tiles.TilesViewHandler and my tiles.xml has: where logoff.jsp is: <%@ include file="/jspf/common/taglibs.jsp" %> <%@ include file="/jspf/common/messages.jsp" %> Dick -Original Message- From: JS Portal Support [mailto:[EMAIL PROTECTED] Sent: Thu 2/8/2007 5:01 AM To: user@shale.apache.org Cc: Subject: RE: tiles integration error Gotta love one of those days where you waste 6 hours just because you left an old struts.jar in a commons folder To my relieve the next seemingly unsolvable problem lined itself up ;-) org.apache.tiles.FactoryNotFoundException: Can't get definitions factory from context. Seems to indicate that tiles definitions file is never loaded. I have defined the following in my web.xml: definitions-config /WEB-INF/tiles.xml And my tiles.xml: Am I missing anything? Cheers, Joost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Thursday, February 08, 2007 1:56 PM To: user@shale.apache.org Subject: Re: tiles integration error On 2/7/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > > I cheered too soon ;-) :-) I have all the right jar's in place but can't figure out how to configure > the lot. Maybe I'm missing something but I can't find any example with the > shale 1.1.0 snapshot I just downloaded. The thread at [1] seems too old > and > the explanation at [2] seems to new. Where can I find a working example to > work from? > > I guess most of my questions is in regard to configuring tiles, but since > I'm relying on shale, I need to make sure I'm configuring the right > version > here. There are a couple of pointers on the Shale wiki that might help[1]. Thanks, > Joost > > [1] http://www.mail-archive.com/user@shale.apache.org/msg00774.html > [2] http://tiles.apache.org/quickstart/index.html Craig [1] http://wiki.apache.org/shale/ShaleAndTiles -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig > McClanahan > Sent: Thursday, February 08, 2007 6:19 AM > To: user@shale.apache.org > Subject: Re: tiles integration error > > On 2/7/07, Dick Starr <[EMAIL PROTECTED]> wrote: > > > > I use Shale/Tiles successfully with the nightly builds at > > http://people.apache.org/builds/shale/nightly/ (I am currently using the > > 01/29/07 version). I use the jars from > > shale-framework-1.1.0-SNAPSHOT/lib. > > > In particular, you need to use the snapshot of Tiles that is included with > the framework builds for this to work. Because Tiles is still a moving > target, we sync up on snapshots (such as the "2.0-r468346-SNAPSHOT" > version > that is currently specified in the shale-tiles POM). > > Dick > > > Craig > >
RE: tiles integration error
Gotta love one of those days where you waste 6 hours just because you left an old struts.jar in a commons folder To my relieve the next seemingly unsolvable problem lined itself up ;-) org.apache.tiles.FactoryNotFoundException: Can't get definitions factory from context. Seems to indicate that tiles definitions file is never loaded. I have defined the following in my web.xml: definitions-config /WEB-INF/tiles.xml And my tiles.xml: Am I missing anything? Cheers, Joost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Thursday, February 08, 2007 1:56 PM To: user@shale.apache.org Subject: Re: tiles integration error On 2/7/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > > I cheered too soon ;-) :-) I have all the right jar's in place but can't figure out how to configure > the lot. Maybe I'm missing something but I can't find any example with the > shale 1.1.0 snapshot I just downloaded. The thread at [1] seems too old > and > the explanation at [2] seems to new. Where can I find a working example to > work from? > > I guess most of my questions is in regard to configuring tiles, but since > I'm relying on shale, I need to make sure I'm configuring the right > version > here. There are a couple of pointers on the Shale wiki that might help[1]. Thanks, > Joost > > [1] http://www.mail-archive.com/user@shale.apache.org/msg00774.html > [2] http://tiles.apache.org/quickstart/index.html Craig [1] http://wiki.apache.org/shale/ShaleAndTiles -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig > McClanahan > Sent: Thursday, February 08, 2007 6:19 AM > To: user@shale.apache.org > Subject: Re: tiles integration error > > On 2/7/07, Dick Starr <[EMAIL PROTECTED]> wrote: > > > > I use Shale/Tiles successfully with the nightly builds at > > http://people.apache.org/builds/shale/nightly/ (I am currently using the > > 01/29/07 version). I use the jars from > > shale-framework-1.1.0-SNAPSHOT/lib. > > > In particular, you need to use the snapshot of Tiles that is included with > the framework builds for this to work. Because Tiles is still a moving > target, we sync up on snapshots (such as the "2.0-r468346-SNAPSHOT" > version > that is currently specified in the shale-tiles POM). > > Dick > > > Craig > >
RE: tiles integration error
I cheered too soon ;-) I have all the right jar's in place but can't figure out how to configure the lot. Maybe I'm missing something but I can't find any example with the shale 1.1.0 snapshot I just downloaded. The thread at [1] seems too old and the explanation at [2] seems to new. Where can I find a working example to work from? I guess most of my questions is in regard to configuring tiles, but since I'm relying on shale, I need to make sure I'm configuring the right version here. Thanks, Joost [1] http://www.mail-archive.com/user@shale.apache.org/msg00774.html [2] http://tiles.apache.org/quickstart/index.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Thursday, February 08, 2007 6:19 AM To: user@shale.apache.org Subject: Re: tiles integration error On 2/7/07, Dick Starr <[EMAIL PROTECTED]> wrote: > > I use Shale/Tiles successfully with the nightly builds at > http://people.apache.org/builds/shale/nightly/ (I am currently using the > 01/29/07 version). I use the jars from > shale-framework-1.1.0-SNAPSHOT/lib. In particular, you need to use the snapshot of Tiles that is included with the framework builds for this to work. Because Tiles is still a moving target, we sync up on snapshots (such as the "2.0-r468346-SNAPSHOT" version that is currently specified in the shale-tiles POM). Dick Craig
RE: tiles integration error
Aha! Just using the tiles shipped with my shale snapshot did it. Thanks! Joost JS Portal - Support Dasstraat 21 2623CB Delft the Netherlands E: [EMAIL PROTECTED] W: www.jsportal.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Thursday, February 08, 2007 6:19 AM To: user@shale.apache.org Subject: Re: tiles integration error On 2/7/07, Dick Starr <[EMAIL PROTECTED]> wrote: > > I use Shale/Tiles successfully with the nightly builds at > http://people.apache.org/builds/shale/nightly/ (I am currently using the > 01/29/07 version). I use the jars from > shale-framework-1.1.0-SNAPSHOT/lib. In particular, you need to use the snapshot of Tiles that is included with the framework builds for this to work. Because Tiles is still a moving target, we sync up on snapshots (such as the "2.0-r468346-SNAPSHOT" version that is currently specified in the shale-tiles POM). Dick Craig
tiles integration error
Hi, I'm trying to configure tiles with shale, but get the below listed exception which clearly shows it cannot find the org/apache/tiles/DefinitionsFactoryException class. But in the latest tiles-core-2.0 this Exception is located at org/apache/tiles/definition/DefinitionsFactoryException. So my guess is one of the other packages it expecting an older tiles version. But I believe I have all the latest shale and MyFaces jar's. Can anyone figure out from this stack trace where the problem lies? Thanks, Joost ---The exception-- java.lang.NoClassDefFoundError: org/apache/tiles/DefinitionsFactoryException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getConstructor(Unknown Source) at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfig urator.java:548) at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfig urator.java:473) at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java :141) at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer vletContextListener.java:69) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(S tartupServletContextListener.java:52) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java: 3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Exception handling on init, prerender and preprocess
Hi, As the AbstractViewController does not throw Exceptions on its init(), prerender() and preprocess(), I'm catching the exceptions in these methods in my own classes extending the AbstractViewController and build my own dispatching or logging. Why can these methods not utilize shale's exception handling? Regards, Joost
RE: Starting A DialogContext Programmatically
Hi, great help and making slow progress. I've been breaking my head all day on this programmatic dialog though. When I start my dialog though a commandLink, all goes fine, and this is what my log shows (jsportal=debug and org.apache.shale=debug altered for email a bit): (Logon.java:144)Logon will return authenticated (BasicDialogContext.java:363) - advance(id=1, name=AuthenticateUser, outcome=authenticated) (jsportal.PortalBaseViewController.java:146) - findStoredView() called. View stored: (jsportal.PortalBaseViewController.java:153)no_view_stored will be returned as no STORED_VIEW is found (BasicDialogContext.java:523) - stop(id=1, name=null) (ViewViewHandler.java:282) - setupViewController(/jsp/dashboard.jsp,false) all doing what it should do as defined in my below dialog[1] When I start the AuthenticateUser programmatically the user gets nicely redirected to the logon.jsf when not logged. Then after logon, no further execution of the dialog seems to happen. My log shows of this situation: (Logon.java:144) - Logon will return authenticated (LifecycleListener.java:604) - ServletRequestAttributeRemoved(org.apache.shale.view.PHASE_ID,INVOKE_APPLICA TION(5)) (LifecycleListener.java:538) - ServletRequestAttributeAdded(org.apache.shale.view.PHASE_ID,RENDER_RESPONSE( 6)) (PortalBaseViewController.java:92) - prerender() called on: com.jsportal.projectportal.web.JSFaces.Logon and just the logon will be shown again with that difference manual navigation to the dashboard.jsf will now be permitted because I'm logged. I'm lost and don't know what else to try after about 8 hours of banging my head on the keyboard ;-) Thanks Joost [1] dialog: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Thursday, January 25, 2007 5:22 AM To: user@shale.apache.org Subject: Re: Starting A DialogContext Programmatically On 1/24/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > > Okay, > > For some reason my shale jar's didn't have the DialogContextManager and > DialogContext interfaces in them. I downloaded the latest 1.0.4 ;-) and > that > solved it. Now I can't get to my data anymore without logging in. Jeee! > > Is there a problem with the .getVariableResolver() being depreciated by > the > way? What would be the new preferred way? The issues with using the getVariableResolver() approach are: * The application is getting involved with the internal "plumbing" of the implementation, including depending on the managed beans facility to create the manager if it does not exist. * The application is required to be aware of the key under which the DialogContextManager is stored, and what scope it is in. * Because the knowledge is scattered all over an application, it would be essentially impossible to modify the technique inside the framework. In 1.0.4, the approach I described is the only one that works, and it will continue to work in later versions. In the nightly builds, last night I checked in a helper class that makes life a lot easier: public class DialogHelper { // Return the active DialogContext (if any) public static DialogContext getDialogContext(); public static DialogContext getDialogContext(FacesContext context); // Return the DialogContextManager, creating if needed public static DIalogContextManager getDialogContextManager(); public static DialogContextManager getDialogContextManager(FacesContext context); } so you end up with very simple calls like: DialogContextManager manager = DialogHelper.getDialogContextManager(); with all the implementation details hidden away. > I haven't personally tested whether you can successfully navigate (say, to > >a login page) from the prerender() method. > It works. When a user tries to access without being logged, the > Authenticate > dialog is started from the prerender. But now, how can I make my user > return > to the initial view which started up the Authenticate dialog. The user > gets > logged on but gets to see the logon.jsp once the Authenticate dialog is > done. Is there a way to create a dialog programmatically, like you > described, moving the user to the view on which prerender is called and > then > set the Authenticate as a child so that after authenticate, the user will > be > redirected back to the initial view? Something along the following lines ought to work: * In the view that starts the authentication dialog, save the view id in a session scope variable. * At the end of the authentication dialog, execute an action method that looks up the saved view id (if any), and navigates programmatically instead o
RE: Starting A DialogContext Programmatically
Okay, For some reason my shale jar's didn't have the DialogContextManager and DialogContext interfaces in them. I downloaded the latest 1.0.4 ;-) and that solved it. Now I can't get to my data anymore without logging in. Jeee! Is there a problem with the .getVariableResolver() being depreciated by the way? What would be the new preferred way? > I haven't personally tested whether you can successfully navigate (say, to >a login page) from the prerender() method. It works. When a user tries to access without being logged, the Authenticate dialog is started from the prerender. But now, how can I make my user return to the initial view which started up the Authenticate dialog. The user gets logged on but gets to see the logon.jsp once the Authenticate dialog is done. Is there a way to create a dialog programmatically, like you described, moving the user to the view on which prerender is called and then set the Authenticate as a child so that after authenticate, the user will be redirected back to the initial view? I hope I'm not too much of a burden using you as a climbing rope on my shale learning curve ;-) Cheers, Joost JS Portal Dasstraat 21 2623CB Delft the Netherlands W: www.jsportal.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Wednesday, January 24, 2007 4:53 PM To: user@shale.apache.org Subject: Re: Starting A DialogContext Programmatically On 1/23/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a ViewController which in it's prerender checks if the user in the > session is logged or not. If not, I want to start a subdialog logging the > user in. > > On page http://shale.apache.org/shale-dialog/index.html at: "Starting A > DialogContext Programmatically" it is described how I can do this. I don't > understand it though. Do I need to build my own DialogContextManager and > DialogContext as they seem to be interfaces? Or are there implementations > I > can use, and if so, where can I find them? An example would be great! The "shale-test-dialog-basic" and "shale-test-dialog-scxml" test webapps (they are built nightly along with the framework) have an example of this use case. One nice feature is that the application coding is the same no matter which implementation you use. The DialogContextManager instance is created for you by the framework, so all you will need to do is acquire a reference to it, and then ask it to create you a DialogContext instance like this: FacesContext context = FacesContext.getCurrentInstance(); DialogContextManager manager = (DialogContextManager) context.getApplication().getVariableResolver(). resolveVariable(context, Constants.MANAGER_BEAN); DialogContext dcontext = manager.create(context, "myDialogName"); dcontext.start(context); You do not have to do anything else about storing the DialogContext instance, because the manager will have taken care of that for you. By the way, the reason for using the variable resolver, in the code example above, is because the dialog framework defines the manager as a managed bean. Doing things this way (instead of just checking the write scoped attributes) causes the manager to be created if it does not already exist. By the way, is this a good architecture approach, checking the logged status > on prerender and preprocess? Or are there other better ways to do this? The only thing I would be concerned about is navigation -- I haven't personally tested whether you can successfully navigate (say, to a login page) from the prerender() method. If that works for you, then this seems like a reasonable approach. Thanks, > Joost Schouten > > > Craig
RE: where did org/apache/shale/taglib/CommonsValidatorTag go in 1.0.4?
Aha! Guess I'll have to do a directory wide find and replace from s:commonsValidator to val:commonsValidator ;-) Thanks! Joost Dasstraat 21 2623CB Delft the Netherlands W: www.jsportal.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Wessendorf Sent: Wednesday, January 24, 2007 10:06 PM To: user@shale.apache.org Subject: Re: where did org/apache/shale/taglib/CommonsValidatorTag go in 1.0.4? shale-validator\src\main\java\org\apache\shale\validator\faces\ValidatorTag. java -M On 1/24/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > Hi, > > I just downloaded 1.0.4 to give it a go, and can't find > org/apache/shale/taglib/CommonsValidatorTag > In the shale-core-1.0.4.jar. Is that correct? If so, where can I find it > now. The shale-validator-1.0.4.jar does not contain it either. > > Thank you, > Joost > > > -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
where did org/apache/shale/taglib/CommonsValidatorTag go in 1.0.4?
Hi, I just downloaded 1.0.4 to give it a go, and cant find org/apache/shale/taglib/CommonsValidatorTag In the shale-core-1.0.4.jar. Is that correct? If so, where can I find it now. The shale-validator-1.0.4.jar does not contain it either. Thank you, Joost
Dialog starting point
Hi, A second question on dialog's. I have my logging working well with the following dialogs: This works great if called from : But when I access the /logon.jsf directly I would like this dialog to be started automatically. How do I do this? Thank you, Joost
Starting A DialogContext Programmatically
Hi, I have a ViewController which in it's prerender checks if the user in the session is logged or not. If not, I want to start a subdialog logging the user in. On page http://shale.apache.org/shale-dialog/index.html at: "Starting A DialogContext Programmatically" it is described how I can do this. I don't understand it though. Do I need to build my own DialogContextManager and DialogContext as they seem to be interfaces? Or are there implementations I can use, and if so, where can I find them? An example would be great! By the way, is this a good architecture approach, checking the logged status on prerender and preprocess? Or are there other better ways to do this? Thanks, Joost Schouten
and i18n
Hi, My backing beans set some info messages though calling the .info("message"). The messages I set however are ResourceBundle id's. In my JSP's I then want to collect the id and present the message. I have: Which now nicely displays my i18n id's. How can I alter it so that my proper localized messages are shown? All my i18n is setup and things like: Work as they should. Regards, Joost Schouten
RE: EL question
Ok, that explains why I couldn't do it ;-) Just thought it'd be nice to be able to call methods like that and pass it String arguments. I did already wrap my lucene search results in a List so I could pass that list to the dataTable. But the Hit's in the list had a Hit.getDocument.fiels() method returning the Fields (no get you see). I now also wrapped the Hit's and added the getters I needed. Thank you, joost JS Portal - Support Dasstraat 21 2623CB Delft the Netherlands E: [EMAIL PROTECTED] W: www.jsportal.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Wednesday, January 17, 2007 2:45 AM To: user@shale.apache.org Subject: Re: EL question On 1/16/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Maybe an ignorant (and more a simple JSP) question, but I can't seem to > figure out how to make an EL call that does: > > > > org.apache.lucene.document.Document.get(String nameOfField) > > > > I have my Hits (wrapped in a custom HitsToListWrapper) nicely accessible > for > each row of my dataTable (#{hit.document.butWhatHere}), but am struggling > with just this last seemingly simple step. The EL used by JSP and JSF does not include support for arbitrary method calls with parameters. It can only call JavaBeans property getters (and setters, in the case of JSF expressions). You'll need to point your expression at something that looks like getFoo(). The other thing to note is that a data table already knows how to iterate over a List or array, so just pointing at one of those directly is the easiest approach. Thanks, > > Joost Craig
EL question
Hi, Maybe an ignorant (and more a simple JSP) question, but I can't seem to figure out how to make an EL call that does: org.apache.lucene.document.Document.get(String nameOfField) I have my Hits (wrapped in a custom HitsToListWrapper) nicely accessible for each row of my dataTable (#{hit.document.butWhatHere}), but am struggling with just this last seemingly simple step. Thanks, Joost
RE: How to pass object between backing beans
By the sounds of it jMaki is the way to go then. I understand you might be a bit bias here, but if it does whatever DOJO does and more, capturing all frameworks, what would be the reason for choosing any other framework? Cheers, Joost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Monday, January 15, 2007 3:29 PM To: user@shale.apache.org Subject: Re: How to pass object between backing beans On 1/14/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > > Craig, > > Great, it now works nicely and is portable to any other view I might > create > in the future without altering my GenericTable view. Cool ... that's the way it's supposed to work :-). On a different note: > Is it correct btw that MyFaces will use DOJO AJAX toolkit as its script > engine of choice? As we are currently looking at our options it seems to > me > this will be the wisest choice right? More specifically, the component libraries at MyFaces (Tomahawk and Tobago in the MyFaces project now, Trinidad in the incutabor) have tended to choose Dojo for their Ajax support. That's more up to each individual library than it is up to MyFaces as a whole. And, as a general policy, I can't disagree that it is a reasonable choice. I used Dojo also in our work on the Blueprints Ajax components[1] that ship with Java Studio Creator and NetBeans Visual Web Pack. We made that choice originally because of the nice lower level APIs for asynchronous messaging and eventing on the client side. I've been pretty happy with those layers, but not quite as happy with the UI widget layer -- which has been going through a lot of evolution lately but is looking more settled as we go on. Personally, I'm spending a bunch of time today on the jMaki project[2], where a primary goal is to let you avoid locking yourself into one particular widget framework. jMaki strives to provide a common adapter API around various widget libraries (including Dojo, Spry, Scriptaculous, Yahoo, and a bunch of others) to both reduce complexity and support mix-and-match. Today, there's a low level JSF component that provides direct connection to a large portion of these libraries, but with a fairly low level API. I'm also working on adding a layer of JSF components per widget that will appeal more to someone familiar with traditional JSF composition of your views ... and, will fit very nicely into visual development tools. Needless to say, this all works very nicely with Shale :-). I have to say the more I learn about shale/MyFaces the more excited I get. > We come from a custom build mvc which we respectfully will lay to rest now > :-) :-) Thanks, > Joost Craig
RE: How to pass object between backing beans
Craig, Great, it now works nicely and is portable to any other view I might create in the future without altering my GenericTable view. On a different note: Is it correct btw that MyFaces will use DOJO AJAX toolkit as its script engine of choice? As we are currently looking at our options it seems to me this will be the wisest choice right? I have to say the more I learn about shale/MyFaces the more excited I get. We come from a custom build mvc which we respectfully will lay to rest now :-) Thanks, Joost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Monday, January 15, 2007 12:24 PM To: user@shale.apache.org Subject: Re: How to pass object between backing beans On 1/13/07, JS Portal Support <[EMAIL PROTECTED]> wrote: > > Thanks Craig, > > That makes sense. But the problem here is that generictable will be called > from many views, and not just the myfiles view. So I would love the > injection to be handled from the myfiles view, backing bean or > managed-bean > declaration. Is this possible? In this case, doing an injection from the view wouldn't work anyway, right? Fortunately, since it's your controller that knows what view it is going to navigate to, it can do the injection programmatically. There's two different possible techniques: Using standard JSF APIs, programmatically evaluate an EL expression like this: FacesContext context = FacesContext.getCurrentInstance(); ValueBinding vb = context.getApplication().createValueBinding("#{ generictable.fileList}"); vb.setValue(context, ... the list to be injected ...); or, if you are extending AbstractViewController, you can take advantage of a helper method: GenericTable gt = getBean("generictable"); gt.setFileList(... the list to be injected ...); So basically I want my s:view to pass instantiated objects to its > s:subview's For this particular scenario, putting the injection code into the prerender method of the outer view should do the trick. That's the same place you would go grab data that you might need for the outer view itself, so it's nicely consistent when using subviews. Thanks, > Joost Craig
RE: state tracking for jsp:include's
Dear Kito, That did the trick, Great! Through your comments I stumbled across the tag. If I add this just after my include calling my s:subview'ed /entities/file.jsp, all works exactly like it does when accessed directly Thanks, Joost -Original Message- From: Kito D. Mann [mailto:[EMAIL PROTECTED] Sent: Sunday, January 14, 2007 11:30 AM To: user@shale.apache.org Subject: RE: state tracking for jsp:include's Joost, Looking at the issues you're having, it looks like you need one or more other objects in a different scope (such as session). For example, if you had a session-scoped "visit" object that was injected into your backing beans, it could store state inbetween requests, and your backing beans could just updated it whenever there was some information that needed stick around longer. Another aproach would be to use scopes in the dialog manager; someone else on this list can tell you more about that. ~~~ Kito D. Mann - Author, JavaServer Faces in Action http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info * Sign up for the JSF Central newsletter! http://oi.vresp.com/?fid=ac048d0e17 * > -Original Message----- > From: JS Portal support team [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 13, 2007 3:33 AM > To: user@shale.apache.org > Subject: state tracking for jsp:include's > > Sorry if I'm asking a lot of newbie questions here, but some > things are not quite clear to me. > > When I have a /entities/file.jsp backed by my file class. and > access it directly all works fine. But when I include the > /entities/file.jsp ( in another jsp, shale/myfaces seems to loose the discussion > of the included pages. Upon each request the backing bean for > the included pages gets reinitiated. How can I have my > includes remember their state as well as the containing page? > > Thanks, > Joost >
RE: How to pass object between backing beans
Thanks Craig, That makes sense. But the problem here is that generictable will be called from many views, and not just the myfiles view. So I would love the injection to be handled from the myfiles view, backing bean or managed-bean declaration. Is this possible? So basically I want my s:view to pass instantiated objects to its s:subview's Thanks, Joost JS Portal - Support Dasstraat 21 2623CB Delft the Netherlands E: [EMAIL PROTECTED] W: www.jsportal.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Sunday, January 14, 2007 1:08 PM To: user@shale.apache.org Subject: Re: How to pass object between backing beans On 1/13/07, JS Portal support team <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a view (myfiles.jsp) plus backing bean (myfiles). myfiles.jsp has > an jsp:include (filestable.jsp) in an s:subview which is backed by my > generictable bean. How can I best pass the List of file Objects from > myfiles to generictable. Something like value="#{myfiles.files}"> would be great. > > Or is this not the right way to setup my architecture? As a matter of fact, something very similar to this is available ... but it's done in the managed bean definition instead of in the view: generictable ... request fileList #{myfiles.files} The expression will be evaluated when this managed bean is created, and setFileList() will be called with the result. This general technique is known as dependency injection, and JSF supports the variant called "setter injection" which (as the name implies) uses property setters to actually insert the values. The only restriction on what kind of expressions you can evaluate are that you cannot inject a value from a shorter scope (such as request) into a bean in a longer scope (session or application). The other way around (longer-scoped bean into shorter-scoped bean property), or the same scope, is fine. Thank you > > Craig
state tracking for jsp:include's
Sorry if I'm asking a lot of newbie questions here, but some things are not quite clear to me. When I have a /entities/file.jsp backed by my file class. and access it directly all works fine. But when I include the /entities/file.jsp (
How to pass object between backing beans
Hi, I have a view (myfiles.jsp) plus backing bean (myfiles). myfiles.jsp has an jsp:include (filestable.jsp) in an s:subview which is backed by my generictable bean. How can I best pass the List of file Objects from myfiles to generictable. Something like would be great. Or is this not the right way to setup my architecture? Thank you
RE: ViewController.preprocess never called
Craig, Due to reasons I don't quite understand it started working. I tried to find out what I did that changed it, but unfortunately I can't backtrack the cause. But, fortunately, it works! Thanks, Joost JS Portal - Support Dasstraat 21 2623CB Delft the Netherlands E: [EMAIL PROTECTED] W: www.jsportal.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Friday, January 12, 2007 7:00 PM To: user@shale.apache.org Subject: Re: ViewController.preprocess never called On 1/11/07, JS Portal support team <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a backing bean which extends an abstract backing bean extending > the AbstractViewController. I use preprocess to enlist resources that > need to be committed once the entire request is done. However, > preprocess never gets called, while init does get called. Could anyone > point me to clues why this might be and what common scenarios are when > this happens. One very common mistake is to attempt to place your ViewController bean in session scope. If you are doing that, it's not going to work (but you should look at the Dialog capabilities for techniques of maintaining state across requests). If that is not your situation, could you please post snippets of your faces-config.xml describing the managed bean that you have defined? Thank you, > joost > > Craig
ViewController.preprocess never called
Hi, I have a backing bean which extends an abstract backing bean extending the AbstractViewController. I use preprocess to enlist resources that need to be committed once the entire request is done. However, preprocess never gets called, while init does get called. Could anyone point me to clues why this might be and what common scenarios are when this happens. Thank you, joost
s:commonsValidator type="double" problem
Hi, When I use the: The type="double" doesn't seem to work. When I use float or integer all works fine. Doesn't work means here that validatorscript printing causes the following exception below. Regards, Joost Schouten The exception: java.lang.NullPointerException at org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl.write(HtmlResponseW riterImpl.java:583) at org.apache.shale.component.ValidatorScript.writeValidationFunctions(Validato rScript.java:417) at org.apache.shale.component.ValidatorScript.encodeBegin(ValidatorScript.java: 644) at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:337) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:224) at org.apache.jsp.home.contact_jsp._jspx_meth_s_validatorScript_0(contact_jsp.j ava:2314) at org.apache.jsp.home.contact_jsp._jspx_meth_h_form_1(contact_jsp.java:1629) at org.apache.jsp.home.contact_jsp._jspService(contact_jsp.java:492) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 32) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilte r.java:268) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis patcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(Servl etExternalContextImpl.java:415) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHand lerImpl.java:234) at org.apache.shale.clay.faces.ClayViewHandler.renderView(ClayViewHandler.java: 442) at org.apache.shale.view.faces.ViewViewHandler.renderView(ViewViewHandler.java: 151) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilte r.java:268) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at com.jsportal.projectportal.web.SessionFilter.doFilter(SessionFilter.java:193 ) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis patcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:301) at com.jsportal.web.LocaleFilter.doFilter(LocaleFilter.java:150) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at com.jsportal.multipart.MultipartFilter.doFilter(MultipartFilter.java:60) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at com.jsportal.web.JSPRedirectFilter.doFilter(JSPRedirectFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:202) at org.apac
RE: question
>But I would love to check in translated versions if I could find >some volunteers to do the translations! I can do this for Dutch and the other languages I will have done by translators when I need them. But still I would like to know if there is an EL way to perform something like: for an attribute value? > ..But the developers there have been receptive to such changes. I do need this feature and either will build it myself outside Shale/commons, but would love to contribute to the project and work with someone to implement. Who do I talk to though? Thank you and looking forward to making this work. Joost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Tuesday, December 12, 2006 6:56 PM To: user@shale.apache.org Subject: Re: question On 12/11/06, JS Portal support team <[EMAIL PROTECTED]> wrote: > > >If you do not specify messages for these keys in your own application > >resource bundle, validator will fall back to its own default message > >strings ... so you don't have to override these unless the defaults do > not > >help you. > > Does shale also internationalize these messages then? Also in Hebrew and > Korean or any other script for that matter? At the moment, Shale only includes the English and German translation of the messages. But I would love to check in translated versions if I could find some volunteers to do the translations! It's a matter of providing an appropriate messages_XXX.properties file containing translations of the English version, which can be found at [1]. The same applies to any other message resource bundles found in the source base as well. The best way to provide the translations would be to create an RFE issue in our tracking system[1], and add the appropriate properties files as an enhancement. Like all resource bundles, don't forget to run native2ascii if the translations include on-USASCII7 characters. >That is what would happen if the form is actually submitted, but the client > >side checks are designed to prevent the form submit from happening if > there > >are any errors detected there -- so things never get far enough along for > >the server side checks to kick in (unless you've disabled client side > >Javascript). > > Why I asked is because I want to use the client check to prevent > unneeded return trips to the server. I just don't like the looks of the > alert. I was hoping shale also made a little client script available > which populates the h:message with the appropriate error message. That would be a great enhancement to the current functionality, but it's not there at present. It's also going to take a bit of refactoring in the client side JavaScript code of Commons Validator, which currently mixes the logic (is the field valid) and presentation (do the popup) a little too closely to be able to pull this off. But the developers there have been receptive to such changes. Thank you for your help,= Craig [1] http://svn.apache.org/viewvc/shale/framework/trunk/shale-validator/src/main/resources/org/apache/shale/validator/messages.properties?revision=467172&view=markup ]2] https://issues.apache.org/struts/browse/SHALE JS Portal - Support > Dasstraat 21 > 2623CB Delft > the Netherlands > E: [EMAIL PROTECTED] > W: www.jsportal.com > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig > McClanahan > Sent: Tuesday, December 12, 2006 12:36 PM > To: user@shale.apache.org > Subject: Re: question > > On 12/11/06, JS Portal support team <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I have two questions concerning tag > > > > 1. Is there a way to set the message attribute of the s:commonsValidator > > with the value resulting from?: > > > > > > > > > > > > This way I don't have to add a long list of err.required.email, > > err.required.name etc. to my i18n properties files. Just a compilation > > of my err.requiredField ({0} required) combined with the field name will > > be enough. > > > If you do not specify messages for these keys in your own application > resource bundle, validator will fall back to its own default message > strings ... so you don't have to override these unless the defaults do > not > help you. > > 2. Is there a way to have the client check also print the error message > > to the in stead of having the JavaScript > > alert pop up? > > > That is what would happen if the form is actually submitted, but the > client > side checks are designed to prevent the form submit from happening if > there > are any errors detected there -- so things never get far enough along for > the server side checks to kick in (unless you've disabled client side > Javascript). > > Thank you and have a great day, > > Joost Schouten > > Director > > > Craig > > > JS Portal > > Dasstraat 21 > > 2623CB Delft > > the Netherlands > > P: +31 6 160 160 14 > > E: [EMAIL PROTECTED] > > W: www.jsportal.com > > > > > >
RE: question
>If you do not specify messages for these keys in your own application >resource bundle, validator will fall back to its own default message >strings ... so you don't have to override these unless the defaults do not >help you. Does shale also internationalize these messages then? Also in Hebrew and Korean or any other script for that matter? >That is what would happen if the form is actually submitted, but the client >side checks are designed to prevent the form submit from happening if there >are any errors detected there -- so things never get far enough along for >the server side checks to kick in (unless you've disabled client side >Javascript). Why I asked is because I want to use the client check to prevent unneeded return trips to the server. I just don't like the looks of the alert. I was hoping shale also made a little client script available which populates the h:message with the appropriate error message. Thank you for your help,= JS Portal - Support Dasstraat 21 2623CB Delft the Netherlands E: [EMAIL PROTECTED] W: www.jsportal.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Tuesday, December 12, 2006 12:36 PM To: user@shale.apache.org Subject: Re: question On 12/11/06, JS Portal support team <[EMAIL PROTECTED]> wrote: > > Hi, > > I have two questions concerning tag > > 1. Is there a way to set the message attribute of the s:commonsValidator > with the value resulting from?: > > > > > > This way I don't have to add a long list of err.required.email, > err.required.name etc. to my i18n properties files. Just a compilation > of my err.requiredField ({0} required) combined with the field name will > be enough. If you do not specify messages for these keys in your own application resource bundle, validator will fall back to its own default message strings ... so you don't have to override these unless the defaults do not help you. 2. Is there a way to have the client check also print the error message > to the in stead of having the JavaScript > alert pop up? That is what would happen if the form is actually submitted, but the client side checks are designed to prevent the form submit from happening if there are any errors detected there -- so things never get far enough along for the server side checks to kick in (unless you've disabled client side Javascript). Thank you and have a great day, > Joost Schouten > Director Craig JS Portal > Dasstraat 21 > 2623CB Delft > the Netherlands > P: +31 6 160 160 14 > E: [EMAIL PROTECTED] > W: www.jsportal.com > >
question
Hi, I have two questions concerning tag 1. Is there a way to set the message attribute of the s:commonsValidator with the value resulting from?: This way I don't have to add a long list of err.required.email, err.required.name etc. to my i18n properties files. Just a compilation of my err.requiredField ({0} required) combined with the field name will be enough. 2. Is there a way to have the client check also print the error message to the in stead of having the JavaScript alert pop up? Thank you and have a great day, Joost Schouten Director JS Portal Dasstraat 21 2623CB Delft the Netherlands P: +31 6 160 160 14 E: [EMAIL PROTECTED] W: www.jsportal.com
problem
Hi, I'm trying to include my navigation.jsp in my pages through the means of . This all works fine, but now I started to use JSF tags like in my navigation.jsp, all gets displayed weird. I do enclose the include in it's tags but all h:outputText gets printed before the regulair HTML and JSP content in my include folowed by the other content, while they are actually mixed. What am I doing wrong? Thank you, Joost
URL parameter addition
Hi, I got my login side of things to work with shale through the faces navigation rules. I would like, however, for the address in the address bar not to show http://www.jsportal.com/logon.jsf but http://www.jsportal.com/logon.jsf?l=n so that when the user bookmarks the page the l value also gets stored. I could do this with a cookie, but these get deleted at times. Is there a way to add this attribute in some way? This l value tells logon.jsp what db to logon to. Thank you you, Joost Schouten Director JS Portal Dasstraat 21 2623CB Delft the Netherlands P: +31 6 160 160 14 E: [EMAIL PROTECTED] W: www.jsportal.com
RE: shale and i18n
That worked Craig, Thanks! As I have two Filters both handling FORWARDS now I needed to build in a guard to prevent a loop forwarding Exceptions around over and over, but that was done easily. Thanks a lot and have a great weekend. BTW: does anyone have a list of ASP's currently running on shale? Joost Schouten Dasstraat 21 2623CB Delft the Netherlands E: [EMAIL PROTECTED] W: www.jsportal.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Thursday, October 12, 2006 4:36 PM To: user@shale.apache.org Subject: Re: shale and i18n On 10/12/06, JS Portal support team <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm in the process of implementing shale and am considering my renewed > architecture. I have a filter in place which checks the incoming request > for Locale info. It takes a request like > http://www.jsportal.com/en_GB/index.jsp and uses the RequestDispatcher > to forward the request to http://www.jsportal.com/en/GB/index.jsp, if > not found, http://www.jsportal.com/en/index.jsp, if not found > http://www.jsportal.com/index.jsp while also setting the Locale in the > session. This approach creates a very flexible i18n. However, using the > RequestDispatcher in this way seems to interfere with shale as it too > seems to use it. Once our filter dispatches the request the shale filter > seems never to be reached. Does shale have support for this type of i18n > or is there a way to alter the request URL without using the dispatcher? > I want to stay away from the response forward because I want my site to > be cached by searchengines with the locale in the URL. > > Does anyone have any ideas how to tackle this problem? With servlet 2.4 and later, you can declare that you want a filter to be processed, even on a RequestDispatcher.forward request. It sounds like you'll need to configure the Shale filter this way: Shale Filter ... URL pattern or servlet name or whatever ... FORWARD REQUEST Thank you, > Joost Schouten > Director Craig JS Portal > Dasstraat 21 > 2623CB Delft > the Netherlands > P: +31 6 160 160 14 > E: [EMAIL PROTECTED] > W: www.jsportal.com > >
shale and i18n
Hi, Im in the process of implementing shale and am considering my renewed architecture. I have a filter in place which checks the incoming request for Locale info. It takes a request like http://www.jsportal.com/en_GB/index.jsp and uses the RequestDispatcher to forward the request to http://www.jsportal.com/en/GB/index.jsp, if not found, http://www.jsportal.com/en/index.jsp, if not found http://www.jsportal.com/index.jsp while also setting the Locale in the session. This approach creates a very flexible i18n. However, using the RequestDispatcher in this way seems to interfere with shale as it too seems to use it. Once our filter dispatches the request the shale filter seems never to be reached. Does shale have support for this type of i18n or is there a way to alter the request URL without using the dispatcher? I want to stay away from the response forward because I want my site to be cached by searchengines with the locale in the URL. Does anyone have any ideas how to tackle this problem? Thank you, Joost Schouten Director JS Portal Dasstraat 21 2623CB Delft the Netherlands P: +31 6 160 160 14 E: [EMAIL PROTECTED] W: www.jsportal.com
RE: How to reference a static value in JSF
Thanks Hermod. So there is no way of doing this without configuring the bean as a backing bean? That explains why I couldn't find out how to do it ;-) Thanks, Joost JS Portal - Support Dasstraat 21 2623CB Delft the Netherlands E: [EMAIL PROTECTED] W: www.jsportal.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 25, 2006 1:27 PM To: user@shale.apache.org Subject: RE: How to reference a static value in JSF Hi If you look in the Shale samples, you will see that you need to configure your backingbeans (what you refer to as "one of my classes") . Then you reference them by their .. Note that if you have nested properties, you need use the syntax .['neste_property'] Hermod -Original Message- From: JS Portal Support [mailto:[EMAIL PROTECTED] Sent: Monday, September 25, 2006 1:20 PM To: user@shale.apache.org Subject: How to reference a static value in JSF Hi, Just started to implement Shale and JSF. As I've always worked more with scriptlets and Servlets I can't seem to figure out how to reference a public static value from one of my classes in my JSP's. I've always used: Now I try to achieve this with the following: I understand this doesn't work as it will try to call com.getJsportal()etc. But how do I do it, as the <%=%> is not allowed in these taglib tags? Thanks, Joost * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
How to reference a static value in JSF
Hi, Just started to implement Shale and JSF. As I've always worked more with scriptlets and Servlets I can't seem to figure out how to reference a public static value from one of my classes in my JSP's. I've always used: Now I try to achieve this with the following: I understand this doesn't work as it will try to call com.getJsportal()etc. But how do I do it, as the <%=%> is not allowed in these taglib tags? Thanks, Joost