Re: using tld2claycfg
On 4/19/07, Hermod Opstvedt <[EMAIL PROTECTED]> wrote: Hi My mails are'nt making it through to the list for some reason - I have tried to answere this several times. Hermod, This is happening because the address you are using (hermod AT opstvedt.com) was not subscribed to the user list, so the messages end up in the moderator queue. I see that it is now, so this should not be happening any more. On the other hand, if you like I can make sure that you can post from either of your addresses but only need to be subscribed once -- let me know privately if you'd like to change to this mode. Craig
RE: using tld2claycfg
Hi Here go and try again - Download the tool [1] also and build it with mvn clean install [1] https://svn.apache.org/repos/asf/shale/tools/trunk/tld2claycfg It is a dependent of the Tld2ClayCfg Maven plugin. Hermod Posted april 19th 0230 GMT+2 -Original Message- From: JS Portal Support [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 2:23 AM To: user@shale.apache.org; [EMAIL PROTECTED] Subject: 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 > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: 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: SV: valueChangeListener is breaking form submit
> Fra: AM101 [mailto:[EMAIL PROTECTED] > Sendt: 21. april 2007 13:30 > Til: user@shale.apache.org > Emne: Re: valueChangeListener is breaking form submit > > > When I remove valueChangeListener , setter is called. But I need to use > valueChangeListener. > That's a hard one to diagnose but I have a couple ideas. The setters on the sub type list are not going to be called if the component is disabled. Something else to consider is validation errors. You might be hitting validation errors. If you are, the lifecycle is going to stop short and jump to the render phase bypassing the update model phase. If you are hitting validation errors, try setting the immediate attribute to "true" on the two select components and the command component you are using to submit the form. This will cause the value change listeners and commands to be invoked in the apply request values phase (before validation). Gary > AM101 wrote: > > > > I have two selectOneMenu components (lstType and lstSubType) in my form. I > > want to change values in lstSubType when value in lstType changes. I am > > using valueChangeListener as follwong: > > > > > > > > id="lstType" allowBody="false"> > > > > > /> > > > > > > > > > > value="[EMAIL PROTECTED]" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > id="lstSubType" allowBody="false"> > > > > > value="[EMAIL PROTECTED]" /> > > > > > value="[EMAIL PROTECTED]" /> > > > > > > > > > > > > > > > > > > > > > value="[EMAIL PROTECTED]" /> > > > > > > > > > > Everything works fine except that when I submit the form setter of sub > > type is never called and always remains the same . Please let me know what > > is missing? > > > > Thanks, > > AM > > > > -- > View this message in context: > http://www.nabble.com/valueChangeListener-is-breaking-form-submit-tf3622758. > html#a10116210 > Sent from the Shale - User mailing list archive at Nabble.com. > >
SV: valueChangeListener is breaking form submit
Hi Why do you have multiple actins defined for you list? The valueChangeListener will allways be called, and you also have an action onclick defined, actually defining double events. Why don't you just add a button to your form which handles the submit, and leave the actionlistener to handle the list. A similar case is: http://forum.java.sun.com/thread.jspa?threadID=591711&messageID=3091466 Hermod -Opprinnelig melding- Fra: AM101 [mailto:[EMAIL PROTECTED] Sendt: 21. april 2007 13:30 Til: user@shale.apache.org Emne: Re: valueChangeListener is breaking form submit When I remove valueChangeListener , setter is called. But I need to use valueChangeListener. AM101 wrote: > > I have two selectOneMenu components (lstType and lstSubType) in my form. I > want to change values in lstSubType when value in lstType changes. I am > using valueChangeListener as follwong: > > > id="lstType" allowBody="false"> > > > > > >value="[EMAIL PROTECTED]" /> > > > > > > > > > > > > > > > > > > > > > > > id="lstSubType" allowBody="false"> > > > > > > > > > > > > > > > > > > > Everything works fine except that when I submit the form setter of sub > type is never called and always remains the same . Please let me know what > is missing? > > Thanks, > AM > -- View this message in context: http://www.nabble.com/valueChangeListener-is-breaking-form-submit-tf3622758. html#a10116210 Sent from the Shale - User mailing list archive at Nabble.com.
Upgrade to new Tiles version
Do you plan to upgrade the unreleased Shale 1.0.5 or the 1.1.0 branch with the new Tiles 2 release when you do this? I noticed that the new snapshot of Tiles---2.0.3---was not compatible with MyFaces 1.1.4. Maybe it is compatible with MyFaces 1.1.5 or with the 2.x branch. Specifically, MyFaces wanted to load the DefinitionsFactoryExceptions class, but it has moved to a subpackage. It is no longer directly under the org.apache.tiles package but has moved to the org.apache.tiles.definition package. Also, I noticed that the dtds were in transition in the tiles core jar that shipped with the 1.1.0 snapshot that I placed into my working test webapp. They reference: http://struts.apache.org/dtds/tiles-config_2_0.dtd";> and <%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles" %> These have changed such that struts.apache.org/ is now tiles.apache.org and of course the contents of the corresponding files have changed as well as some of the tag names. For instance tiles:put now appears to be tiles:put-attribute. -=> Gregg <=- Greg Reddin wrote: > > BTW, I'm planning > to upgrade Shale-Tiles to the latest "official" Tiles release once we get > another one out. > > HTH, > Greg > signature.asc Description: OpenPGP digital signature
SUCCESS - Re: Migration: Struts/Tiles to Shale/JSF/Tiles
I appear to have successfully resolved my two page to one page problem. I no longer need _any_ page, for instance the loadLayout.jsp page, that contains a tiles:insertDefinition tag. I can simply jump directly to any tiles definition name. This is how I had Struts/Tiles working before, so this seems to be the best way to use Tiles with Shale and JSF. I have posted a test webapp at: http://www.lansdaletutoring.com/test The home page at this location allows the user to jump to two different tiles and, from each of them, back to the home tile and to also download the test webapp war file. I changed the index.jsp file to: My tiles-def.xml file is: http://struts.apache.org/dtds/tiles-config_2_0.dtd";> The homeTile.jsp file is: <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> <%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t" %> A Verbatim Method to do The Same Content Tile! Another paragraph of content. Another second paragraph of content. http://www.lansdaletutoring.com/test/files/test.war";> As far as the org.apache.shale.tiles.TilesViewHandler goes, I don't seem to need to declare it in faces-config.xml or anywhere else. I suppose it is being automatically loaded when needed and doesn't need to be declared. If you want to see the exact error message that does occur when it is declared in faces-config.xml, just declare it in the exploded test.war and go to the home page. I believe that it will still fail as before when this is done. If not, let me know. -=> Gregg <=- Greg Reddin wrote: > On 4/18/07, Gregg Leichtman wrote: >> >> I am also using the tiles listener from web.xml as follows: >> >> >> >> org.apache.tiles.listener.TilesListener >> >> >> >> instead of the Shale tiles view handler (if this makes a difference) in >> faces-config.xml: >> >> >> >> which I could not get to work. > > > [snip] > > The Shale/JSF/Tiles scheme that I currently have working seems really >> clunky. >> >> Is there some way that I can reduce the two pages down to one page under >> Shale/JSF/Tiles? > > > If I understand the TilesViewHandler correctly it is supposed to work > that > way. Similar to how TilesRequestProcessor translated a forward > definition > into a Tiles invocation. I think TilesViewHandler is supposed to do > something similar for Tiles 2 in a JSF environment. > > What sort of problems did you have with the ViewHandler? BTW, I'm > planning > to upgrade Shale-Tiles to the latest "official" Tiles release once we get > another one out. > > HTH, > Greg > signature.asc Description: OpenPGP digital signature
Re: valueChangeListener is breaking form submit
When I remove valueChangeListener , setter is called. But I need to use valueChangeListener. AM101 wrote: > > I have two selectOneMenu components (lstType and lstSubType) in my form. I > want to change values in lstSubType when value in lstType changes. I am > using valueChangeListener as follwong: > > > id="lstType" allowBody="false"> > > > > > >value="[EMAIL PROTECTED]" /> > > > >/> > > > > > > > > > > > > > > > > > > > id="lstSubType" allowBody="false"> > > > > > > > > > > > > > > > > > > > Everything works fine except that when I submit the form setter of sub > type is never called and always remains the same . Please let me know what > is missing? > > Thanks, > AM > -- View this message in context: http://www.nabble.com/valueChangeListener-is-breaking-form-submit-tf3622758.html#a10116210 Sent from the Shale - User mailing list archive at Nabble.com.
valueChangeListener is breaking form submit
I have two selectOneMenu components (lstType and lstSubType) in my form. I want to change values in lstSubType when value in lstType changes. I am using valueChangeListener as follwong: Everything works fine except that when I submit the form setter of sub type is never called and always remains the same . Please let me know what is missing? Thanks, AM -- View this message in context: http://www.nabble.com/valueChangeListener-is-breaking-form-submit-tf3622758.html#a10116203 Sent from the Shale - User mailing list archive at Nabble.com.