RE: master-detail redirection with annoteded request bean and tomahawk updateActionListener

2007-08-03 Thread hermod.opstvedt
Hi

Wrong list - Try the MyFaces list for questions regarding Tomahawk

Hermod

-Original Message-
From: Érico" Teixeira [mailto:[EMAIL PROTECTED]
Sent: Monday, July 30, 2007 8:26 PM
To: user@shale.apache.org
Subject: master-detail redirection with annoteded request bean and
tomahawk updateActionListener


I have an use case where I need to load a dataTable with all monthly fees from 
a student and put a link in id column to redirect to an annotaded Fee Request 
Bean  where I can visualize all details ...

I've tried to use :

 
...








In my faces_config.xml I have :


*

#{studentBean.choose}
success
/view/fee.xhtml





Using Eclipse / Tomcat Debug when I enter in feeBean I can see that my property 
#{feeBean.fee} is set to null

Are those steps correct ? Is that the way to have a master-detail redirection 
using these frameworks ?
   
-
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Shale and Sandbox inputSuggestAjax

2007-05-11 Thread hermod.opstvedt
Hi

The regular inputSuggestAjax works, and I am just about to test the label/value 
sample now. However, there is one thing that comes to mind. Have you done 
anything to the converter (i.e have you declared it?)

Hemrod

-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Friday, May 11, 2007 11:08 AM
To: user@shale.apache.org
Subject: Re: SV: SV: Shale and Sandbox inputSuggestAjax


Debugged dojo a little bit:

onLoad calls this function on


var js=ifd.getElementsByTagName("textarea")[0].value;


However, "textarea" is not known and got no properies, excaption is
thrown and gets catched.
Thats all - maybe the problem, but that might be a dojo issue - i am
wonder if this is shale related, as the irian example with jsp does
work.

Hermod, does it work for you? 

Torsten

Am Freitag, den 11.05.2007, 10:21 +0200 schrieb Torsten Krah:
> Hm i got a "serious" problem:
> 
> Using firebug to analyse the response for the 3rd example (using
> converter + label) under:
> 
> http://www.irian.at/myfaces-sandbox/inputSuggestAjax.jsf
> 
> On load the address is show in the field, and the answer on clocking the
> arrow is:
> 
> [["detroit,nonamestreet,KL","11"],["san
> diego,maxstreet,SJ","12"],["philadelphia,philstreet,NW","13"],["new
> york,newstreet,IL","14"],["san francisco,sanstreet,NY","15"],]
> 
> Used it with clay, and now i get:
> 
> Instead of the detroit ... , the "11" number is shown in the input
> field.
> 
> The answer of the ajax request is:
> 
> 
> [["detroit,nonamestreet,KL","11"],["san 
> diego,maxstreet,SJ","12"],["philadelphia,philstreet,NW","13"
> ],["new york,newstreet,IL","14"],["san francisco,sanstreet,NY","15"],]
> 
> 
> The same.
> 
> But no "popup" for the suggests. No ajax or js error on the debug
> console - whats wrong here?
> 
> Torsten
> 
> Am Freitag, den 11.05.2007, 09:45 +0200 schrieb Torsten Krah:
> > Thx - nice work.
> > 
> > Tried it, works so far - method gets called and i get an ajax response.
> > But i see no popup in the browser, must have done something wrong ;).
> > 
> > Torsten
> > 
> > 
> > Am Dienstag, den 08.05.2007, 19:57 +0200 schrieb Hermod Opstvedt:
> > > Hi
> > > 
> > > Wiki entry in place.
> > > 
> > > Hermod
> > > 
> > > 
> > > -Opprinnelig melding-
> > > Fra: Erik Govaers [mailto:[EMAIL PROTECTED] 
> > > Sendt: 8. mai 2007 17:33
> > > Til: user@shale.apache.org
> > > Emne: Re: SV: Shale and Sandbox inputSuggestAjax
> > > 
> > > Hi,
> > > 
> > > It would be brilliant if you could get us a fix in a couple of days. I'm 
> > > in an advanced phase of a project and I'm reluctant to let go of either 
> > > Shale or Tomahawk-Sandbox. And yes, I would welcome a Wiki too.
> > > 
> > > Thank you,
> > > 
> > > Erik
> > > 
> > > 
> > > >- Oorspronkelijk bericht -
> > > >Van: Hermod Opstvedt [mailto:[EMAIL PROTECTED]
> > > >Verzonden: dinsdag, mei 8, 2007 05:14 PM
> > > >Aan: user@shale.apache.org
> > > >Onderwerp: SV: Shale and Sandbox inputSuggestAjax
> > > >
> > > >Hi
> > > >
> > > >I have a working setup for Clay on this and if there is an interest I 
> > > >can write a small tutorial on the Wiki.
> > > >
> > > >I am going to start a fix for the Shale-validator which is the cause of 
> > > >this later to day and hopefully it will be done in a day or two.
> > > >
> > > >Hermod
> > > >
> > > >
> > > >-Opprinnelig melding-
> > > >Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] 
> > > >Sendt: 8. mai 2007 16:47
> > > >Til: user@shale.apache.org
> > > >Emne: Re: Shale and Sandbox inputSuggestAjax
> > > >
> > > >>From: "Erik Govaers" <[EMAIL PROTECTED]> 
> > > >>
> > > >> Hello, 
> > > >> 
> > > >> Iââ'¬â"¢m trying my hand at a very simple example based on the 
> > > >> example at http://www.irian.at/myfaces-sandbox/inputSuggestAjax.jsf. I 
> > > >> get an 
> > > >> input field, but when I start typing I get no suggestions since my 
> > > >> backing bean 
> > > >> ââ'¬ËoesuggestedItemsââ'¬â"¢ method is never called. Iââ'¬â"¢m 
> > > >> using server-side saving, but 
> > > >> switching to client-side makes no difference. Iââ'¬â"¢ve looked at a 
> > > >> lot of the 
> > > >> inputSuggestAjax related issues in the mailing lists, but found no 
> > > >> solution yet. 
> > > >> My guess is that is has either something to do with the fact that I'm 
> > > >> using 
> > > >> MyFaces 1.1.3 or with the fact that the Shale/Clay 
> > > >> ValidatorInputRenderer is 
> > > >> overwriting the InputSuggestAjax Renderer (something I noticed just 
> > > >> now). If the 
> > > >> latter is true, what can I do to prevent this? 
> > > >>
> > > >
> > > >This is an open JIRA ticket [1].  We need to find a configurable option 
> > > >for specifying components in the "javax.faces.Input" family that should 
> > > >be excluded from the commons validator renderer decorator.
> > > >
> > > >This looks like a cool component. You might try a workaround.  This is a 
> > > >*complete hack* but I think it should solve this problem.  The trick 
> > > >would be to c

RE: SV: SV: Shale and Sandbox inputSuggestAjax

2007-05-09 Thread hermod.opstvedt
Hi

Depends on how much of a hurry your in - I am working on it.

Hermod

-Original Message-
From: Erik Govaers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 09, 2007 12:53 PM
To: user@shale.apache.org
Subject: Re: SV: SV: Shale and Sandbox inputSuggestAjax


Hello,

Thanks for the fix and Wiki. Is it worth waiting for the fix of the Shale 
validator?

Erik

>- Oorspronkelijk bericht -
>Van: Hermod Opstvedt [mailto:[EMAIL PROTECTED]
>Verzonden: dinsdag, mei 8, 2007 07:57 PM
>Aan: user@shale.apache.org
>Onderwerp: SV: SV: Shale and Sandbox inputSuggestAjax
>
>Hi
>
>Wiki entry in place.
>
>Hermod
>
>
>-Opprinnelig melding-
>Fra: Erik Govaers [mailto:[EMAIL PROTECTED] 
>Sendt: 8. mai 2007 17:33
>Til: user@shale.apache.org
>Emne: Re: SV: Shale and Sandbox inputSuggestAjax
>
>Hi,
>
>It would be brilliant if you could get us a fix in a couple of days. I'm in an 
>advanced phase of a project and I'm reluctant to let go of either Shale or 
>Tomahawk-Sandbox. And yes, I would welcome a Wiki too.
>
>Thank you,
>
>Erik
>
>
>>- Oorspronkelijk bericht -
>>Van: Hermod Opstvedt [mailto:[EMAIL PROTECTED]
>>Verzonden: dinsdag, mei 8, 2007 05:14 PM
>>Aan: user@shale.apache.org
>>Onderwerp: SV: Shale and Sandbox inputSuggestAjax
>>
>>Hi
>>
>>I have a working setup for Clay on this and if there is an interest I can 
>>write a small tutorial on the Wiki.
>>
>>I am going to start a fix for the Shale-validator which is the cause of this 
>>later to day and hopefully it will be done in a day or two.
>>
>>Hermod
>>
>>
>>-Opprinnelig melding-
>>Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] 
>>Sendt: 8. mai 2007 16:47
>>Til: user@shale.apache.org
>>Emne: Re: Shale and Sandbox inputSuggestAjax
>>
>>>From: "Erik Govaers" <[EMAIL PROTECTED]> 
>>>
>>> Hello, 
>>> 
>>> I’m trying my hand at a very simple example based on the 
>>> example at http://www.irian.at/myfaces-sandbox/inputSuggestAjax.jsf. I get 
>>> an 
>>> input field, but when I start typing I get no suggestions since my backing 
>>> bean 
>>> ‘suggestedItems’ method is never called. I’m using server-side 
>>> saving, but 
>>> switching to client-side makes no difference. I’ve looked at a lot of the 
>>> inputSuggestAjax related issues in the mailing lists, but found no solution 
>>> yet. 
>>> My guess is that is has either something to do with the fact that I'm using 
>>> MyFaces 1.1.3 or with the fact that the Shale/Clay ValidatorInputRenderer 
>>> is 
>>> overwriting the InputSuggestAjax Renderer (something I noticed just now). 
>>> If the 
>>> latter is true, what can I do to prevent this? 
>>>
>>
>>This is an open JIRA ticket [1].  We need to find a configurable option for 
>>specifying components in the "javax.faces.Input" family that should be 
>>excluded from the commons validator renderer decorator.
>>
>>This looks like a cool component. You might try a workaround.  This is a 
>>*complete hack* but I think it should solve this problem.  The trick would be 
>>to change the component family and rendererType.
>> 
>> 
>>[1] https://issues.apache.org/struts/browse/SHALE-442
>> 
>>Consider:
>>
>>
>>// subclass the component overriding the family and renderer type.
>>package com.acme.InputSuggestAjax
>>public class InputSuggestAjax extends 
>>org.apache.myfaces.custom.suggestajax.inputsuggestajax.InputSuggestAjax {
>>   public InputSuggestAjax() {
>>  setRendererType("com.acme.InputSuggestAjax")
>>   }   
>>   public String getFamily() {
>>   return "com.acme.Input";
>>   }
>>
>>
>>}
>>
>>// register the subclassed component in the /WEB-INF/faces-config.xml
>>
>>  
>>com.acme.InputSuggestAjax
>>com.acme.InputSuggestAjax
>>  
>> 
>>
>>  com.acme.Input
>>  com.acme.InputSuggestAjax
>>  
>> org.apache.myfaces.custom.suggestajax.inputsuggestajax.InputSuggestAjaxRenderer
>>
>>  
>>
>>
>>Depending on if you are using JSP, Clay or Facelets you will need some 
>>additional setup. 
>>
>>
>>Gary
>>
>>
>>
>
>
>
>
>


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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

2007-04-23 Thread hermod.opstvedt
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\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.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute

RE: using tld2claycfg

2007-04-21 Thread hermod.opstvedt
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

2007-04-21 Thread hermod.opstvedt
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: Shale Build Error - Lifecycle class not found

2007-04-13 Thread hermod.opstvedt
Hi

You wouldn't happen to be behind a proxy that does not support redirects, or 
using a maven-proxy with an old httpclient jar?

If so you may want to try and add the following to your settings.xml file



ibibliomirror
http://mirrors.ibiblio.org/maven2
central

..


Hermod


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig
McClanahan
Sent: Friday, April 13, 2007 5:28 AM
To: [EMAIL PROTECTED]
Subject: Re: Shale Build Error - Lifecycle class not found


On 4/12/07, Torsten Krah <[EMAIL PROTECTED]> wrote:
> cd ~/Development/src/shale-parent <- top lvl directory of svn checkout
>
> mvn clean install
>
> Whats "interesting" is - it seams the complete jsf spec api is not
> found.
> Searching ~/.m2 for a myfaces api i got:
>
> Nothing ...
>

Hmm ... for me, it's in:

~/.m2/repository/org/apache/myfaces/core/myfaces-api

The build defaults to version 1.1.4 of this artifact.  This was
downloaded initially from the standard Maven public repository.

One thing you might try is using the -X option on your "mvn" command.
It will create a very copious amount of debugging output, including
which dependencies it thinks you need, and which repositories it is
searching for them.

(I also presume that you're connected to the Internet when running
your build, so that new dependencies can be downloaded automatically.)

Craig


> Have i have to provide it myself anywhere - thought maven would fetch it
> if needed.
>
> Torsten
>
> Am Mittwoch, den 11.04.2007, 13:34 -0700 schrieb Craig McClanahan:
> > Hmm ... building the current trunk code (with Maven 2.0.4) works for
> > me when I do the following:
> >
> > cd /framework <-- top level directory of my SVN checkout
> > mvn clean install
> >
> > Could you describe a little more about what commands you used to
> > initiate the build that is breaking like this?
> >
> > Craig
> >
> > On 4/10/07, Torsten Krah <[EMAIL PROTECTED]> wrote:
> > > Trying to build latest SVN Snapshot, i get:
> > >
> > > [INFO] Surefire report directory:
> > > /home/tkrah/Development/src/shale-parent/shale-test/target/surefire-reports
> > > org.apache.maven.surefire.booter.SurefireExecutionException:
> > > javax/faces/lifecycle/Lifecycle; nested exception is
> > > java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle
> > > java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle
> > > at java.lang.Class.getDeclaredMethods0(Native Method)
> > > at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> > > at java.lang.Class.getMethod0(Class.java:2670)
> > > at java.lang.Class.getMethod(Class.java:1603)
> > > at
> > > org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMethod(JUnitTestSet.java:176)
> > > at
> > > org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSet.java:140)
> > > at
> > > org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java:247)
> > > at
> > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:104)
> > > at
> > > org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:150)
> > > at org.apache.maven.surefire.Surefire.run(Surefire.java:111)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:597)
> > > at
> > > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
> > > at
> > > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> > > [INFO] 
> > > 
> > > [ERROR] BUILD FAILURE
> > > [INFO] 
> > > 
> > >
> > >
> > > Can anyone confirm this or is my maven broken again?
> > >
> > > Torsten
> > >
> > >
>
>
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Clay nested templates

2007-04-11 Thread hermod.opstvedt
Hi

Not to forget that you can package together components in a jar file and 
distribute them. That's reuse!

[1] http://wiki.apache.org/shale/ReusableClayJars

Hermod

-Original Message-
From: JS Portal Support [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 11, 2007 10:39 AM
To: user@shale.apache.org
Subject: 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
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Tomahawk's enabledOnUserRole attribute and Clay

2007-03-30 Thread hermod.opstvedt
Hi

Which Clay tomahawk component config file are you using? Have you tried with 
1.1.5-SNAPSHOT and the config file in the trunk?

Hermod

-Original Message-
From: Richard Eggert [mailto:[EMAIL PROTECTED]
Sent: Monday, March 26, 2007 11:37 PM
To: user@shale.apache.org
Subject: Tomahawk's enabledOnUserRole attribute and Clay


Perhaps I'm overlooking something here, but from the testing I did this 
afternoon, it appears that the "enabledOnUserRole" attribute provided with most 
of Tomahawk's components doesn't work at all in Clay HTML templates.  However, 
it does work properly when I use straight JSP/JSF without Clay (at least most 
of the time, anyway; t:commandButton seems to have issues with it).

I have an HTML template that contains an element that looks something like the 
following:



When I view the page while logged in as a user that does not have the "myrole" 
role, the checkbox is still enabled, and I can use it to toggle the 
corresponding flag in the underlying bean.  Thinking that it might be a problem 
with the implicit mapping of the  element, I tried changing the HTML 
element to just a  tag (with attributes set as above, minus the 
type="checkbox" part), to no avail.

I also tried setting enabledOnUserRole for a textarea, and it didn't work 
correctly there, either.

visibleOnUserRole seems to work just fine, though.

Any ideas on this, or should I post it to JIRA?


For reference, I'm using MyFaces 1.1.4, Tomahawk 1.1.3, and Shale 1.0.4.



Rich Eggert
Member of Technical Staff
Proteus Technologies, LLC
http://www.proteus-technologies.com
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: [validator] conversion error while validating listbox component's value

2007-03-20 Thread hermod.opstvedt
Hi

Your use-case is very specialized. The way I see it, we would need to imlement 
a groupValidator where you could list all the fields that where to be validated 
and which validation rules to run. I might be a challenging task that one.

Hermod

-Original Message-
From: Hasan Turksoy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 1:58 PM
To: user@shale.apache.org
Subject: Re: [validator] conversion error while validating listbox
component's value


>>Tomahawk sandbox subForm (and probably others like Trinidad's subForm)
>>will allow you to do validation grouping like you've specified below.

infact subforms can not handle all our requirements.. because we need to
validate "crossform" fields too... suppose we are required to validate (
Form1.fieldA,Form1.fieldB,Form2.fieldC) when comboX submitted and (
Form1.fieldD,Form2.fieldE) when a buttonY submitted...

this means, it's needed, for our project, to validate grouped fields
independent from their forms...

hasan..



On 3/19/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
>
> Tomahawk sandbox subForm (and probably others like Trinidad's subForm)
> will allow you to do validation grouping like you've specified below.
>
>
> On 3/19/07, Hasan Turksoy <[EMAIL PROTECTED]> wrote:
> > >>Sounds like your doing some creating stuff with the validator.
> > Yes, i've customized so many parts at both shale-validator and
> > commons-validator jars... our project needs urgent validation
> requirements..
> > so, i have injected some extra solutions into framework..  nowadays i'm
> > working on validating only some specific(grouped) fields for only some
> > specific submits.. This means; for instance, a combo will only validate
> > A,B,C fields while another button(in the same form) will validate only
> E,F,G
> > fields...
> > This is a hard requirement :).. and needs core changes at framework..
> that's
> > why i have to track and hold all my changes strictly and go parallel
> with
> > original shale code at the same time...
> >
> > best regards,
> >
> > hasan...
> >
> >
> >
> >
> > On 3/17/07, Gary VanMatre <[EMAIL PROTECTED] > wrote:
> > >
> > > >From: "Hasan Turksoy" < [EMAIL PROTECTED]>
> > > >
> > > > i have implemented a workaround for this serverside required
> problem...
> > > > shortly: if validatorscript sets the required attribute, as you say,
> JSF
> > > > won't call my serverside validator when that field's value is
> empty...
> > > to
> > > > overcome this, i've commented the validatorscript's required
> attribute
> > > > setting code.. this means JSF can't see that field as required and
> not
> > > call
> > > > any required validator for that field... So, how can we call
> serverside
> > > > required validators? I've implemented an
> > > > idea from myfaces wiki..
> > > >
> > > > Implementation in short; i have developed an
> > > > RequiredValidatorChecker component.. it traverses all the component
> tree
> > > and
> > > > calls validate methods for found required validators...
> > > > i have entered a blog about  this solution...
> > > >
> > > > So, you can think that serverside required validations are being
> called
> > > when
> > > > needed...
> > > >
> > > > In fact, the problem is ConverterHelper can not handle array/list
> types
> > > in
> > > > current situation... although i can't think of any such scenario,
> > > somehow a
> > > > validation may be necessary to validate an array/list value.. so,
> how
> > > should
> > > > it work in this case? (May be such a scenario is not possible ;) )
> > > >
> > >
> > > Shale Clay has an example of using a converter for string
> arrays[1][2].
> > >
> > > I don't understand your problem with the validators.  I think I would
> have
> > >
> > > tried using the "immediate" flag on the commands to stop short of
> > > validation.
> > > Or, looked at one of tomahawk or trinidad's subform components but you
> > > might have a complex layout that won't let you do that.
> > >
> > > Sounds like your doing some creating stuff with the validator.
> > >
> > > [1]
> > >
> http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/convert/StringArrayConverter.java?view=markup
> > > [2]
> > >
> http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/main/resources/META-INF/faces-config.xml?view=markup
> > >
> > >
> > > > Hasan...
> > > >
> > > >
> > > > On 3/16/07, Gary VanMatre wrote:
> > > > >
> > > > >
> > > > > The server-side "required" commons validator rule is kind of
> bogus.
> > > I've
> > > > > only seen it useful
> > > > > for client side validation. This is because JSF requires a value
> > > before
> > > > > it will even invoke
> > > > > the server side validation logic. A component's validator will not
> be
> > > > > invoked if the component doesn't have a value. There is a separate
> > > > > "required" attribute for components that are EditableValueHolders.
> > > > >
> > > > > The shale ValidatorScript component, that must be added at the end
>

RE: prerender() not called on my tiles

2007-03-19 Thread hermod.opstvedt
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

2007-03-19 Thread hermod.opstvedt
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: SV: Re: basic dialog nullpointerexception

2007-03-15 Thread hermod.opstvedt
Hi

I run all sorts of combinations of Tomcat and Eclipse (w/WTP) in order to test 
what works and what does not. I have not seen the behaviour you describe, which 
leads towards thinking that you may have some added stuff in the project 
classpath that may cause odd behaviour.


Hermod

-Original Message-
From: Veit Guna [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 14, 2007 11:06 PM
To: user@shale.apache.org
Subject: Re: SV: Re: basic dialog nullpointerexception


Hi.

After I switched my local project to another version (different
workspace), it indeeded stopped working with 5.5.23. But it worked
before with 5.5.23. I don't know what it blew up.

So that means, listeners in tlds only work up to tomcat 5.5.17? But it
didn't work out with my 5.5.17 version. Strange thing. Meanwhile I think
perhaps it's a problem with eclipse wtp and tomcat. Never tried it with
tomcat standalone. Did you?

BTW: I'm using Java5.

regards,
Veit


Hermod Opstvedt schrieb:
> Hi
> 
> The last working version of Tomcat is actually 5.5.17 with Java5. If you
> switch to Java 1.4 things are different.
> 
> There is a post by me on this, where I went through and tested on all 5.5.x
> versions, and things stopped working after 5.5.17
> 
> Hermod
> 
> 
> -Opprinnelig melding-
> Fra: Veit Guna [mailto:[EMAIL PROTECTED] 
> Sendt: 12. mars 2007 20:34
> Til: user@shale.apache.org
> Emne: SV: Re: basic dialog nullpointerexception
> 
> Hi again.
> 
> I upgraded my Tomcat 5.5.17 installation (it wasn't 5.5.16) to tomcat 5.5.23
> and now the BasicLifecycleListener gets invoked.
> 
> Seemed to be a problem with tomcat?!
> 
> Regards,
> Veit
> 
> 
>  Original-Nachricht 
> Datum: Mon, 12 Mar 2007 13:41:26 +0100
> Von: "Veit Guna" <[EMAIL PROTECTED]>
> An: user@shale.apache.org
> CC: 
> Betreff: Re: basic dialog nullpointerexception
> 
>> I'm using tomcat 5.5.16.
>>
>>
>>  Original-Nachricht 
>> Datum: Mon, 12 Mar 2007 05:31:50 -0700
>> Von: "Craig McClanahan" <[EMAIL PROTECTED]>
>> An: user@shale.apache.org
>> CC: 
>> Betreff: Re: basic dialog nullpointerexception
>>
>>> On 3/12/07, Veit Guna <[EMAIL PROTECTED]> wrote:
 Hi.

 I'm trying to get the basic dialog feature of shale 1.0.4 working.
>> I've
>>> added the jars view, dialog, basic-dialog, core to my classpath and
>> created
>>> a dialog xml file in WEB-INF. Now when I try in a h:commandLink an
>> action
>>> like "dialog:myDialog" a NullPointerException occurs:
 java.lang.NullPointerException
at

> org.apache.shale.dialog.basic.BasicDialogManager.create(BasicDialogManager.j
> ava:97)
at

> org.apache.shale.dialog.basic.BasicDialogManager.create(BasicDialogManager.j
> ava:87)
at

> org.apache.shale.dialog.faces.DialogNavigationHandler.handleNavigation(Dialo
> gNavigationHandler.java:121)
at

> org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListen
> erImpl.java:84)
at

> org.apache.shale.view.faces.ViewActionListener.processAction(ViewActionListe
> ner.java:74)
at
 ...

 I've taken a look at the BasicDialogManager. It tries to use an
>>> uninitialized Map. I guess it should be initialized by the
>> BasicLifecycleListener
>>> but it isn't. Any hints, what I've forgotten?
 Do I have to put the BasicLifecycleListener somewhere manually?
>>> In general, you should *not* have to configure this listener manually.
>>>  It is registered in a listener defined in the
>>> shale-dialog-basic-xxx.jar file that you're including.  However, not
>>> all containers properly implement registering listeners in a TLD
>>> inside a JAR file.  What container and version are you running on?
>>>
>>> Craig
>>>
 Regards,
 Veit

 --
 "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
 Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out

>> -- 
>> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
>> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
> 


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Defining mask globally

2007-03-15 Thread hermod.opstvedt
Hi

Haven't had a look at the code yet, but could you try:  

Hermod

-Original Message-
From: Sanjay Choudhary [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 14, 2007 11:03 PM
To: user@shale.apache.org; [EMAIL PROTECTED]
Subject: Re: Defining mask globally


Hi Hermod,

I am using version 1.0.4 of shale-validator.

Is this the right approach to manage the regex for the mask?

I also double checked about typo error, that error was in email message but
not in the code.

Thanks




On 3/14/07, Hermod Opstvedt <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> Another question: Which version is this of shale-validator? The
> linenumbers
> don't match up with the current.
>
> Hermod
>
>
> -Opprinnelig melding-
> Fra: Sanjay Choudhary [mailto:[EMAIL PROTECTED]
> Sendt: 14. mars 2007 21:33
> Til: user@shale.apache.org
> Emne: Defining mask globally
>
> hi
>
> I wish to define the global regex for masks in a common file. For example
> ,
> name field mask will be like ^[a-zA-Z]+$.
>
>  value="#{BrokerRepresentative.name}" size="20">
>  server="true"
> client="false">
>  />
> 
> 
>
> I wish to replace this with something like
>
> 
>
>  value="#{BrokerRepresentative.name}" size="20">
>  server="true"
> client="false">
> 
> 
> 
>
> This will enable me to validate the name field in a uniform way through
> out
> my application. Also if any change is need in regex then it needs to
> applied
> in one place.  When I tried this solution  I got
>
>
> java.lang.NullPointerException
>
> org.apache.shale.validator.CommonsValidator.convert(CommonsValidator.java
> :95
> 4)
>
> org.apache.shale.validator.CommonsValidator.loadMethodParamValues
> (CommonsVal
> idator.java:715)
>
> org.apache.shale.validator.CommonsValidator.validate(CommonsValidator.java
> :7
> 93)
> javax.faces.component.UIInput.validateValue(UIInput.java:781)
> javax.faces.component.UIInput.validate(UIInput.java:645)
> javax.faces.component.UIInput.executeValidate(UIInput.java:849)
> javax.faces.component.UIInput.processValidators(UIInput.java:412)
>
> javax.faces.component.UIComponentBase.processValidators(
> UIComponentBase.java
> :912)
> javax.faces.component.UIForm.processValidators(UIForm.java:170)
>
> javax.faces.component.UIComponentBase.processValidators(
> UIComponentBase.java
> :912)
>
> javax.faces.component.UIComponentBase.processValidators(
> UIComponentBase.java
> :912)
>
> javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
>
> com.sun.faces.lifecycle.ProcessValidationsPhase.execute
> (ProcessValidationsPh
> ase.java:78)
> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java
> :200)
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
> :90)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
>
>
>
> Any help /commens/ pointers appreciated to resolve this problem.  I open
> to
> different solution too.
>
>
> Thanks,
> sanjay
>
>


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: no converters/validators exist in jar - only Integer found...

2007-03-06 Thread hermod.opstvedt
Hi

It's here: https://issues.apache.org/struts/browse/SHALE-420

Hermod

-Original Message-
From: Hasan Turksoy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 06, 2007 2:07 PM
To: user@shale.apache.org
Subject: Re: no converters/validators exist in jar - only Integer
found...


thanks Hermod for your responsiveness... i'm looking for your patch...

hasan..


On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have created a patch that contains these and will upload it shortly.
>
> Hermod
>
> -Original Message-
> From: Hasan Turksoy [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 06, 2007 9:19 AM
> To: user@shale.apache.org
> Subject: Re: no converters/validators exist in jar - only Integer
> found...
>
>
> sorry for wrong subject sentence... i meant converter/validator TAGS...
> converters/validators already exist with no problem...
>
>
> On 3/6/07, Hasan Turksoy <[EMAIL PROTECTED]> wrote:
> >
> >
> > hi all,
> >
> > i'm using shale.1.0.4 version... when i looked at converters.tld,
> > javadocs, etc.. it seems there should be DoubleConverterTag,
> > FloatConverterTag, etc.. but i can not find any converter/validator
> > tags inside my jar file... looked into nightly jars, but no success...
> does
> > anybody know what's wrong? why those converter tags not in jar? if i'm
> > looking at wrong path, somebody please direct me to the correct
> jar/path?
> >
> > thanks in advance,
> >
> > hasan..
> >
> >
> >
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> *
>
> 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: [shale-validator] view contr oller – site navigation

2007-03-06 Thread hermod.opstvedt
Hi

Welcome to JavaServer Faces and post :)  - The post goes back to the current 
page  but you render a diferent page on return. So you will most likely always 
be one page behind in the url. The exception to the case is when you submit to 
the same page twice.

Hermod

-Original Message-
From: gerrit [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 06, 2007 10:04 AM
To: user@shale.apache.org
Subject: Re: [shale-validator] view controller – site navigation



Hi 

If I output the view root ViewId I get the following:
ViewRoot1: /faces/projekte.jsp
ViewRoot2: /faces/aufgaben.jsp

  FacesContext facesContext = FacesContext.getCurrentInstance();
  log.debug("ViewRoot1: "+facesContext.getViewRoot().getViewId());
  NavigationHandler navigationHandler =
facesContext.getApplication().getNavigationHandler();
  navigationHandler.handleNavigation(facesContext,
"#{/faces/projekte.jsp}","successAufgaben");
  log.debug("ViewRoot2: "+facesContext.getViewRoot().getViewId());
  facesContext.renderResponse();

So in my mind the navigation handler works correct. But on the browser
projekte.jsp is shown. If I press any button on this site, the navigation
behind this button is ignored and aufgaben.jsp is shown.

Gerrit   


craigmcc wrote:
> 
> On 3/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Hi
>>
>> I think the best way to achieve what you want is to raise a flag in the
>> viewcontrollers init method. Then when the method that is supposed to be
>> executed is called, you check for the flag at the beginning and return
>> the outcome that corresponds to the error situatiuon.
>>
> 
> It actually is possible to navigate from init(), but you have to do a
> bit more work:
> 
> FacesContext context = FacesContext.getCurrentInstance();
> NavigationHandler nh =
> context.getApplication().getNavigationHandler();
> String fromAction = "#{...}"; // Fake expression for the action
> you pretend executed
> String outcome = "..."; // Fake outcome from the fake action
> nh.handleNavigation(context, fromAction, outcome);
> context.renderResponse(); // Skip directly to Render Response phase
> 
> The current view, plus the values you specify for fromAction and
> outcome, are fed into the standard navigation rules processing and a
> new view will be selected based on those rules (or the current view
> redisplayed if no rule matches).  The call to renderResponse() causes
> the remainder of the lifecycle for the current page to be skipped.
> 
> From an architectural viewpoint, something to consider is whether it
> makes sense to load data in the prerender() event instead of init().
> The advantage is that this will only be executed if this is the page
> that will really be rendered -- if you navigated elsewhere, you won't
> pay the performance cost of loading data that will not be used.  The
> disadvantage is that, by the time prerender() is called, you are
> committed to rendering this page and you cannot navigate anywhere
> else.
> 
> Craig
> 
>>
>> -Original Message-
>> From: gerrit [mailto:[EMAIL PROTECTED]
>> Sent: Friday, March 02, 2007 9:51 AM
>> To: user@shale.apache.org
>> Subject: view controller – site navigation
>>
>>
>>
>> I use the shale view controller init() method to make standard site
>> validations and load data.
>> The init-Method has no return value and so no navigation rule is
>> executed.
>> If one of my validation methods or the load data method returns an error
>> I'd
>> like execute navigation rules. The reason is to go to a special error
>> page.
>> Is there a possibility to navigate to another page from the init-method?
>>
>> --
>> View this message in context:
>> http://www.nabble.com/view-controller-%E2%80%93-site-navigation-tf3332431.html#a9266099
>> Sent from the Shale - User mailing list archive at Nabble.com.
>>
>>
>>
>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>> *
>>
>> 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.
>>
>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>> *
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/view-controller-%E2%80%93-site-navigation-tf3332431.html#a9328354
Sent from the Shale - User mailing list archive at Nabble.com.



RE: no converters/validators exist in jar - only Integer found...

2007-03-06 Thread hermod.opstvedt
Hi

I have created a patch that contains these and will upload it shortly.

Hermod

-Original Message-
From: Hasan Turksoy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 06, 2007 9:19 AM
To: user@shale.apache.org
Subject: Re: no converters/validators exist in jar - only Integer
found...


sorry for wrong subject sentence... i meant converter/validator TAGS...
converters/validators already exist with no problem...


On 3/6/07, Hasan Turksoy <[EMAIL PROTECTED]> wrote:
>
>
> hi all,
>
> i'm using shale.1.0.4 version... when i looked at converters.tld,
> javadocs, etc.. it seems there should be DoubleConverterTag,
> FloatConverterTag, etc.. but i can not find any converter/validator
> tags inside my jar file... looked into nightly jars, but no success... does
> anybody know what's wrong? why those converter tags not in jar? if i'm
> looking at wrong path, somebody please direct me to the correct jar/path?
>
> thanks in advance,
>
> hasan..
>
>
>


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: [shale-validator] SV: view controller - site navigation

2007-03-06 Thread hermod.opstvedt
Hi

What I mean is that you should raise a flag in the init method. Then keep 
processing, so that the method as is supposed to run (as invoked by your app) 
gets called further down the processing chain it can then check for the flag 
and return an appropriate outcome. 

It you do it like that, you can have different outcomes for the different 
methods on the same error-source. So if your connection is down and the user is 
trying to login you tell him/her that login is not possible now. If the 
connection is down and the user is submitting a order, you inform them that the 
order can not be processed now and maybe in the background save it to a file 
for later processing. Etc etc

Hermod

-Original Message-
From: gerrit [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 06, 2007 9:46 AM
To: user@shale.apache.org
Subject: Re: [shale-validator] SV: view controller - site navigation



Hi 

The faces-config.xml was only a cutout. I have defined more navigation cases
so that different target methods had different outcomes. But I don’t
understand what you mean with “Deferring the outcome to the actual method to
be invoked”. Should I call a target method from the init method – this make
no sense for me. 

Gerrit   


Hermod Opstvedt wrote:
> 
> Hi
> 
> It definitely works, but from an architectural it does not feel right.
> Reason is that you may want different outcomes for different target
> methods.
> Deferring the outcome to the actual method to be invoked makes it cleaner
> in
> my mind.
> 
> Hermod
> 
> 
> -Opprinnelig melding-
> Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Craig
> McClanahan
> Sendt: 5. mars 2007 06:43
> Til: user@shale.apache.org
> Emne: Re: view controller – site navigation
> 
> On 3/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Hi
>>
>> I think the best way to achieve what you want is to raise a flag in the
> viewcontrollers init method. Then when the method that is supposed to be
> executed is called, you check for the flag at the beginning and return the
> outcome that corresponds to the error situatiuon.
>>
> 
> It actually is possible to navigate from init(), but you have to do a
> bit more work:
> 
> FacesContext context = FacesContext.getCurrentInstance();
> NavigationHandler nh =
> context.getApplication().getNavigationHandler();
> String fromAction = "#{...}"; // Fake expression for the action
> you pretend executed
> String outcome = "..."; // Fake outcome from the fake action
> nh.handleNavigation(context, fromAction, outcome);
> context.renderResponse(); // Skip directly to Render Response phase
> 
> The current view, plus the values you specify for fromAction and
> outcome, are fed into the standard navigation rules processing and a
> new view will be selected based on those rules (or the current view
> redisplayed if no rule matches).  The call to renderResponse() causes
> the remainder of the lifecycle for the current page to be skipped.
> 
> From an architectural viewpoint, something to consider is whether it
> makes sense to load data in the prerender() event instead of init().
> The advantage is that this will only be executed if this is the page
> that will really be rendered -- if you navigated elsewhere, you won't
> pay the performance cost of loading data that will not be used.  The
> disadvantage is that, by the time prerender() is called, you are
> committed to rendering this page and you cannot navigate anywhere
> else.
> 
> Craig
> 
>>
>> -Original Message-
>> From: gerrit [mailto:[EMAIL PROTECTED]
>> Sent: Friday, March 02, 2007 9:51 AM
>> To: user@shale.apache.org
>> Subject: view controller – site navigation
>>
>>
>>
>> I use the shale view controller init() method to make standard site
>> validations and load data.
>> The init-Method has no return value and so no navigation rule is
>> executed.
>> If one of my validation methods or the load data method returns an error
> I'd
>> like execute navigation rules. The reason is to go to a special error
> page.
>> Is there a possibility to navigate to another page from the init-method?
>>
>> --
>> View this message in context:
> http://www.nabble.com/view-controller-%E2%80%93-site-navigation-tf3332431.ht
> ml#a9266099
>> Sent from the Shale - User mailing list archive at Nabble.com.
>>
>>
>>
>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> *
>>
>> 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.
>>
>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> *
>>
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/view-controller-%E2%80%93-site-navigation-tf3332431.html#

RE: no converters/validators exist in jar - only Integer found...

2007-03-06 Thread hermod.opstvedt
Hi

Yepp, there is only a IntegerConverterTag - I guess this is "in-progress".

Hermod

-Original Message-
From: Hasan Turksoy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 06, 2007 9:19 AM
To: user@shale.apache.org
Subject: Re: no converters/validators exist in jar - only Integer
found...


sorry for wrong subject sentence... i meant converter/validator TAGS...
converters/validators already exist with no problem...


On 3/6/07, Hasan Turksoy <[EMAIL PROTECTED]> wrote:
>
>
> hi all,
>
> i'm using shale.1.0.4 version... when i looked at converters.tld,
> javadocs, etc.. it seems there should be DoubleConverterTag,
> FloatConverterTag, etc.. but i can not find any converter/validator
> tags inside my jar file... looked into nightly jars, but no success... does
> anybody know what's wrong? why those converter tags not in jar? if i'm
> looking at wrong path, somebody please direct me to the correct jar/path?
>
> thanks in advance,
>
> hasan..
>
>
>


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Clay templating

2007-03-06 Thread hermod.opstvedt
Hi

It's not there because it is not used (I wrote the tutorial) in this tutorial. 
Maybe we should add another tutorial where we show that too?

Hermod

-Original Message-
From: Bernhard Slominski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 06, 2007 8:58 AM
To: 'user@shale.apache.org'
Subject: RE: Clay templating


> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> 
> I'll try to give you some more background.  There are three 
> types of clay templates.
> 
>  
> 
>  
>   
>org.apache.shale.clay.XML_TEMPLATE_SUFFIX
>   
>   .fhtml
>  
>  
> Html templates use and extend common elements.  This type of 
> template can be a fragment or the entire page.  If the 
> template is the entry point to the page, it must be a 
> physical resource meaning that it can't be a pseudo tiles 
> like resource that doesn't exist.
> 
> *  The next type of template are what we call full XML views. 
>  For this type of template, the page entry point is a clay 
> XML configuration definition.  The default suffix of a full 
> XML view is .xml but can be changed using a web.xml context param.
> 
> 
>  
>  
>   
>org.apache.shale.clay.XML_TEMPLATE_SUFFIX
>   
>   .html
>  
> 
> 
>  
>  
>   
>org.apache.shale.clay.FULLXML_CONFIG_FILES
>   
>   /WEB-INF/clay-tiles-config.xml
>  
>  
> This option is similar to Tiles.  The page entry point is not 
> a physical resource but a metadata definition.   
> 

Gary, thanks a lot for the answer.
This is nearly a full blonw tutorial you gave me here.
I was trying it out and it's working fine.
So I use one configuration file /WEB-INF/clay-config.xml for both my common
and
my full XML view resources.




org.apache.shale.clay.COMMON_CONFIG_FILES


/WEB-INF/clay-config.xml






org.apache.shale.clay.FULLXML_CONFIG_FILES


/WEB-INF/clay-config.xml



The former start.html is replaced by an entry in the jsfid in my component
defintion.







 
One small thing, I guess it's a typing or copy and paste error.
You metioned the same context parameter for the HTML views and for
the full XML views, I guess the HTML view parameter is wrong.
But in the turtorial I couldn't find the name of the context parameter
of the HTML view suffix. What is it?


 
  
   org.apache.shale.clay.XML_TEMPLATE_SUFFIX
  
  .fhtml
 

Bernhard



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: no converters/validators exist in jar - only Integer found...

2007-03-06 Thread hermod.opstvedt
Hi

You should find them in shale-validator.jar of from subversion [1]

[1] https://svn.apache.org/repos/asf/shale/framework/trunk/shale-validator

Hermod

-Original Message-
From: Hasan Turksoy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 06, 2007 9:15 AM
To: user@shale.apache.org
Subject: no converters/validators exist in jar - only Integer found...


hi all,

i'm using shale.1.0.4 version... when i looked at converters.tld, javadocs,
etc.. it seems there should be DoubleConverterTag, FloatConverterTag, etc..
but i can not find any converter/validator tags inside my jar file... looked
into nightly jars, but no success... does anybody know what's wrong? why
those converter tags not in jar? if i'm looking at wrong path, somebody
please direct me to the correct jar/path?

thanks in advance,

hasan..


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: view controller – site navig ation

2007-03-02 Thread hermod.opstvedt
Hi

I think the best way to achieve what you want is to raise a flag in the 
viewcontrollers init method. Then when the method that is supposed to be 
executed is called, you check for the flag at the beginning and return the 
outcome that corresponds to the error situatiuon.


-Original Message-
From: gerrit [mailto:[EMAIL PROTECTED]
Sent: Friday, March 02, 2007 9:51 AM
To: user@shale.apache.org
Subject: view controller – site navigation



I use the shale view controller init() method to make standard site
validations and load data. 
The init-Method has no return value and so no navigation rule is executed.
If one of my validation methods or the load data method returns an error I’d
like execute navigation rules. The reason is to go to a special error page.
Is there a possibility to navigate to another page from the init-method? 

-- 
View this message in context: 
http://www.nabble.com/view-controller-%E2%80%93-site-navigation-tf3332431.html#a9266099
Sent from the Shale - User mailing list archive at Nabble.com.



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Clay templating

2007-02-26 Thread hermod.opstvedt
Hi

This is what templating is all about. You create one base layout that all you 
pages are based on. It will normally be divided into several reusabloe 
sections, such as footer, jheader, menu and contents (as in your scenario).

Now when you create new pages, the only thing you want to create is the stuff 
that changes (normally the content) and not have to create a complete page with 
every thing on it each time.

You do not need the start.thml, only the startBody.html

The what you do is in clay-views-config (assuming you have followed the 
standard) you define:








As you can see this is very close to what you did. (There is a catch here: You 
need to add .html as something that JSF is supposed to handle in the web.xml 
file)

I have written a getting started tutorial that you can look at:

http://wiki.apache.org/shale/ShaleAndClayTutorial


Hopefully later to day I'll add another tutorial that goes into basic component 
creation.

Hermod



-Original Message-
From: Bernhard Slominski [mailto:[EMAIL PROTECTED]
Sent: Monday, February 26, 2007 12:15 PM
To: 'user@shale.apache.org'
Subject: Clay templating


Hi all,

I use Clay to build my pages with templates.

I have a base page, all my actual pages are derived from the base page.
My clay-config.xml looks like this




















The "problem" is my actual page start.html it looks like this:



So the issue I'm having is that for every page I need two files
start.html
startBody.html

The start.html page only calls the "startPage" clay component.
So I'd like to have only one file which contains my body.
Are there any possibilties to do this?

Thanks

Bernhard


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: maven build problem of latest svn trunk

2007-02-16 Thread hermod.opstvedt
Hi

That happens every now and then. Normally a -U will fix it, but not always. (At 
least you got clear out some old junk from it :) )

Hermod

-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Friday, February 16, 2007 12:47 PM
To: user@shale.apache.org
Subject: RE: maven build problem of latest svn trunk


Did not help either to upgrade to 2.0.5.
But at last, i removed my ~/.m2 directory to refetch all which is needed
- that did it, i don't know what was wrong, but the build was
successfully.

Torsten

Am Freitag, den 16.02.2007, 08:12 +0100 schrieb
[EMAIL PROTECTED]:
> Hi
> 
> I build it with 2.0.5 with no problems what so ever.
> 
> Hermod
> 
> -Original Message-
> From: Hermod Opstvedt [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 15, 2007 7:38 PM
> To: user@shale.apache.org
> Subject: SV: maven build problem of latest svn trunk
> 
> 
> Hi
> 
> The M2 2.05 was released today. Download it and retry to see if that not
> fixes your problem (I'm in progress of downloading it now)
> 
> Hermod
> 
> 
> -Opprinnelig melding-
> Fra: Rahul Akolkar [mailto:[EMAIL PROTECTED] 
> Sendt: 15. februar 2007 17:24
> Til: user@shale.apache.org
> Emne: Re: maven build problem of latest svn trunk
> 
> On 2/15/07, Torsten Krah <[EMAIL PROTECTED]> wrote:
> > I have still no success - i got the plugin version 2.0 and 2.1, if i
> > delete the 2.0 ones, they get downloaded again.
> > The error stays the same.
> >
> > Any other hints?
> >
> 
> 
> Not from me, like many things m2, it is just supposed to work.
> 
> If its mission critical to build today, try removing
>  from the jar/war plugin s of
> your working copy of the parent pom [1], but thats no fix. *shrug*
> 
> -Rahul
> 
> [1] http://svn.apache.org/repos/asf/shale/framework/trunk/pom.xml
> 
> 
> 
> 
> > Torsten
> >
> > Am Freitag, den 02.02.2007, 20:21 +0100 schrieb Torsten Krah:
> > > Got:
> > >
> > > [DEBUG]
> > > org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.0:runtime
> > > (selected for runtime)
> > >
> > > mvn -up install does not help, same error like before, any other hints?
> > >
> > > A bigger trace output:
> > >
> > > [INFO] Using default encoding to copy filtered resources.
> > > [WARNING]
> > > Artifact javax.servlet:servlet-api:jar:2.5:provided retains
> > > local scope 'provided' overriding broader scope 'compile'
> > > given by a dependency. If this is not intended, modify or remove
> > > the local scope.
> > >
> > > [INFO] [compiler:compile]
> > > [INFO] Nothing to compile - all classes are up to date
> > > [INFO] [resources:testResources]
> > > [INFO] Using default encoding to copy filtered resources.
> > > [INFO] [compiler:testCompile]
> > > [INFO] Nothing to compile - all classes are up to date
> > > [INFO] [surefire:test]
> > > [INFO] Surefire report
> > > directory:
> /home/tkrah/Development/src/shale-parent/shale-test/target/surefire-reports
> > >
> > > ---
> > >  T E S T S
> > > ---
> > > Running org.apache.shale.test.mock.MockObjectsTestCase
> > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.264
> > > sec
> > > Running org.apache.shale.test.config.ConfigParserTestCase
> > > log4j:WARN No appenders could be found for logger
> > > (org.apache.commons.digester.Digester.sax).
> > > log4j:WARN Please initialize the log4j system properly.
> > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.507
> > > sec
> > > Running org.apache.shale.test.mock.ValueBindingTest
> > > descriptor(class=org.apache.shale.test.mock.data.Bean, name=name
> > >   Found BeanInfo [EMAIL PROTECTED]
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015
> > > sec
> > > Running org.apache.shale.test.el.MockExpressionFactoryTestCase
> > > Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.217
> > > sec
> > > Running org.apache.shale.test.mock.TestMockBean
> > > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005
> > > sec
> > >
> > > Results :
> > > Tests run: 18, Failures: 0, Errors: 0, Skipped: 0
> > >
> > >   Found PropertyDescriptor [EMAIL PROTECTED]
> > > [INFO] [jar:jar]
> > > [INFO]
> > > 
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > > 
> > > [INFO] Error assembling JAR
> > >
> > > Embedded error: The attribute "Implementation-Title" may not occur more
> > > than once in the same section
> > > [INFO]
> > > 
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO]
> > > 
> > > [INFO] Total time: 6 seconds
> > > [INFO] Finished at: Fri Feb 02 20:19:54 CET 2007
> > > [INFO] Final Memory: 8M/14M
> > > [INFO]

RE: maven build problem of latest svn trunk

2007-02-15 Thread hermod.opstvedt
Hi

I build it with 2.0.5 with no problems what so ever.

Hermod

-Original Message-
From: Hermod Opstvedt [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 15, 2007 7:38 PM
To: user@shale.apache.org
Subject: SV: maven build problem of latest svn trunk


Hi

The M2 2.05 was released today. Download it and retry to see if that not
fixes your problem (I'm in progress of downloading it now)

Hermod


-Opprinnelig melding-
Fra: Rahul Akolkar [mailto:[EMAIL PROTECTED] 
Sendt: 15. februar 2007 17:24
Til: user@shale.apache.org
Emne: Re: maven build problem of latest svn trunk

On 2/15/07, Torsten Krah <[EMAIL PROTECTED]> wrote:
> I have still no success - i got the plugin version 2.0 and 2.1, if i
> delete the 2.0 ones, they get downloaded again.
> The error stays the same.
>
> Any other hints?
>


Not from me, like many things m2, it is just supposed to work.

If its mission critical to build today, try removing
 from the jar/war plugin s of
your working copy of the parent pom [1], but thats no fix. *shrug*

-Rahul

[1] http://svn.apache.org/repos/asf/shale/framework/trunk/pom.xml




> Torsten
>
> Am Freitag, den 02.02.2007, 20:21 +0100 schrieb Torsten Krah:
> > Got:
> >
> > [DEBUG]
> > org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.0:runtime
> > (selected for runtime)
> >
> > mvn -up install does not help, same error like before, any other hints?
> >
> > A bigger trace output:
> >
> > [INFO] Using default encoding to copy filtered resources.
> > [WARNING]
> > Artifact javax.servlet:servlet-api:jar:2.5:provided retains
> > local scope 'provided' overriding broader scope 'compile'
> > given by a dependency. If this is not intended, modify or remove
> > the local scope.
> >
> > [INFO] [compiler:compile]
> > [INFO] Nothing to compile - all classes are up to date
> > [INFO] [resources:testResources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [compiler:testCompile]
> > [INFO] Nothing to compile - all classes are up to date
> > [INFO] [surefire:test]
> > [INFO] Surefire report
> > directory:
/home/tkrah/Development/src/shale-parent/shale-test/target/surefire-reports
> >
> > ---
> >  T E S T S
> > ---
> > Running org.apache.shale.test.mock.MockObjectsTestCase
> > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.264
> > sec
> > Running org.apache.shale.test.config.ConfigParserTestCase
> > log4j:WARN No appenders could be found for logger
> > (org.apache.commons.digester.Digester.sax).
> > log4j:WARN Please initialize the log4j system properly.
> > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.507
> > sec
> > Running org.apache.shale.test.mock.ValueBindingTest
> > descriptor(class=org.apache.shale.test.mock.data.Bean, name=name
> >   Found BeanInfo [EMAIL PROTECTED]
> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015
> > sec
> > Running org.apache.shale.test.el.MockExpressionFactoryTestCase
> > Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.217
> > sec
> > Running org.apache.shale.test.mock.TestMockBean
> > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005
> > sec
> >
> > Results :
> > Tests run: 18, Failures: 0, Errors: 0, Skipped: 0
> >
> >   Found PropertyDescriptor [EMAIL PROTECTED]
> > [INFO] [jar:jar]
> > [INFO]
> > 
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
> > [INFO] Error assembling JAR
> >
> > Embedded error: The attribute "Implementation-Title" may not occur more
> > than once in the same section
> > [INFO]
> > 
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > 
> > [INFO] Total time: 6 seconds
> > [INFO] Finished at: Fri Feb 02 20:19:54 CET 2007
> > [INFO] Final Memory: 8M/14M
> > [INFO]
> > 
> >




* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: are shale1.0.3 and shale1.0.4 versions JDK1.4 complient?

2007-02-15 Thread hermod.opstvedt
Hi

It is correct that JDK5 was used to build with, however there is a flag in the 
Maven parent pom that instructs it to comply with jdk1.4 so you are safe.


org.apache.maven.plugins
maven-compiler-plugin

1.4
1.4



Hermod

-Original Message-
From: Hasan Turksoy [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 15, 2007 8:58 AM
To: user@shale.apache.org
Subject: are shale1.0.3 and shale1.0.4 versions JDK1.4 complient?


hi,

i'm using shale.1.0.2 in my project(using JDK1.4).. i want to shift shale
version up.. but as far as i see, shale1.0.3 and shale1.0.4 versions built
with JDK1.5 (as manifest file says)...

in fact shale1.0.4's release notes includes an issue to build it with
JDK1.4too.. but i can not understand the problem... aren't those
versions
JDK1.4 complient?

thanks in advance...

hasan


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Tutorial....Re: Clay challange

2007-02-13 Thread hermod.opstvedt
Hi

The best source as of know (There is a book in progress) is the sample files. 
Also there are Maven2 archetypes for the Shale/Clay combo (You need to get it 
from the SVN repo).

As far as your secod question: Yes. It is known as Shale remoting. There are 
samples for this too.

Hermod

-Original Message-
From: Chandresh Turakhia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 8:16 AM
To: user@shale.apache.org
Subject: TutorialRe: Clay challange


Hi,

Where can i best tutorial from Shale

You may even send me tons of links . More interested in architecture.

Wondering if Shale can use used as "Half-object" pattern. Part of shale run 
on client machine, Part of shale runs on server- Reason is integration with 
Web 2.0 technologies

Thanks in advance.
Chand
- Original Message - 
From: <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, February 13, 2007 10:44 PM
Subject: RE: Clay challange


> Hi
>
> Thanks, Ryan. This is what you get when you copy/paste and then go blind 
> :) (I need to sit down and repeat to my self: DO NOT DO THIS! a thousand 
> times)
>
> Hermod
>
> -Original Message-
> From: Ryan Wynn [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 13, 2007 11:23 PM
> To: user@shale.apache.org; [EMAIL PROTECTED]
> Subject: Re: Clay challange
>
>
> On 2/13/07, Hermod Opstvedt <[EMAIL PROTECTED]> wrote:
>> Hi
>>
>> I'm struggling with a component that I have defined:
>>
>>
>>
>>
>>
>>
>>
>>
>>> />
>>
>>
>>
>>>
>> value="#{messages['navnpanel.text']}">
>>
>>
>>
>>
>>
>>
>>> value="#{messages['navnpanel.text']}">
>>
>>
>>
>>
>>
>> It is supposed to render a fieldset with a legend, and a label inside it.
>> However the label never appears and there are no errors what so ever.
>
> I think you might need to look at your renderIds.  The renderId
> attribute is a way of ordering component children.  RenderIds are only
> relevant for sibling elements.  If you have 2 sibling elements with
> the same renderId value then one of the elements will be
> "lost/replaced".
>
> In your case the t:htmlTag and outputLabel both have the same parent
> (t:htmlTag) but they also use the same renderId (2).  They should
> instead be 1 and 2.
>
> My renderIds usually start at 1 for each element set and increment
> from there.  I think only the relative values matter, so you could
> have renderIds 6 and 3 and you would still get 2 children with the 3
> renderId as the first child.
>
> With inheritance you are able to override a component's children
> selectively by specifying another component with the same renderId.
>
> 
>   ...
>  ...
> 
>
> 
> ..
> 
>
> both c1 and c2 produce a clay component with 2 children.  c2 uses
> inheritance and the renderId attribute to override the second
> outputText in c1 with an inputText.  But, c2 still inherits the first
> outputText child from c1.
>
> Hope this helps.
>
>>
>> Hermod
>>
>>
>>
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> *
>
> 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: Clay challange

2007-02-13 Thread hermod.opstvedt
Hi

Thanks, Ryan. This is what you get when you copy/paste and then go blind :) (I 
need to sit down and repeat to my self: DO NOT DO THIS! a thousand times)

Hermod

-Original Message-
From: Ryan Wynn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 13, 2007 11:23 PM
To: user@shale.apache.org; [EMAIL PROTECTED]
Subject: Re: Clay challange


On 2/13/07, Hermod Opstvedt <[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm struggling with a component that I have defined:
>
>
>
>
>
>
>
>
>
>
>
>
>
> value="#{messages['navnpanel.text']}">
>
>
>
>
>
>
> value="#{messages['navnpanel.text']}">
>
>
>
>
>
> It is supposed to render a fieldset with a legend, and a label inside it.
> However the label never appears and there are no errors what so ever.

I think you might need to look at your renderIds.  The renderId
attribute is a way of ordering component children.  RenderIds are only
relevant for sibling elements.  If you have 2 sibling elements with
the same renderId value then one of the elements will be
"lost/replaced".

In your case the t:htmlTag and outputLabel both have the same parent
(t:htmlTag) but they also use the same renderId (2).  They should
instead be 1 and 2.

My renderIds usually start at 1 for each element set and increment
from there.  I think only the relative values matter, so you could
have renderIds 6 and 3 and you would still get 2 children with the 3
renderId as the first child.

With inheritance you are able to override a component's children
selectively by specifying another component with the same renderId.


   ...
  ...



..


both c1 and c2 produce a clay component with 2 children.  c2 uses
inheritance and the renderId attribute to override the second
outputText in c1 with an inputText.  But, c2 still inherits the first
outputText child from c1.

Hope this helps.

>
> Hermod
>
>
>


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Strange Behavior with inputTextarea component

2007-02-11 Thread hermod.opstvedt
Hi

The magic is a missing attribute: allowBody


This 
is a mockup.


You can also use another Clay functionality




This is a mockup.




Hermod

-Original Message-
From: Richard Eggert [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 3:55 AM
To: user@shale.apache.org
Subject: Strange Behavior with inputTextarea component


I've been trying to teach myself how to use Clay (despite the atrocious lack of 
available documentation).  In the process of doing this, I put together a very 
simple "hello world" style application.  However, the behavior is not as 
expected, and I'm not sure whether I'm doing something wrong or there's an 
actual bug in Clay.

My welcome page, index.jsp, contains a redirect to /test.faces.

test.faces maps to test.jsp, which looks like this:

<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="sh" uri="http://shale.apache.org/clay"; %>





test.html itself looks like this:

http://www.w3.org/TR/html4/strict.dtd'>


This is a test



This is a 
mockup.





When viewed in a browser or the "Preview" pane of the Amateras HTML editor, the 
HTML file is (correctly) rendered as a single TEXTAREA entity with the text 
"This is a mockup." as its contents.

My clay-config.xml looks like this:


http://shale.apache.org/dtds/clay-config_1_0.dtd";
>









When I deploy the application and load the page in my browser, the TEXTAREA is 
rendered with the text "Test was successful." as its contents (as expected), 
but the text "This is a mockup." also appears AFTER the TEXTAREA element as 
regular text, which seems like incorrect behavior.  Doing a "View Source" on 
the page yields the following:

http://www.w3.org/TR/html4/strict.dtd'>


This is a test



Test was successful.This is a mockup.





Is this a bug, or am I doing something wrong?  It doesn't seem like Clay should 
be moving the contents of a TEXTAREA such that it is rendered after the tag 
(causing it to appear as regular text).

I'm using Shale v1.04 with MyFaces 1.1.4 on Tomcat 5.5.




Rich Eggert
Member of Technical Staff
Proteus Technologies, LLC
http://www.proteus-technologies.com




* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Clay Using Taglibs (e.g validation)

2007-02-09 Thread hermod.opstvedt
Hi

You need to configure these as Clay components. Have a look at some of the Clay 
sample apps, specifically the clay-config.xml files. To integrate other libs, 
there must be a mapped clay-config file for them, or you need to run the 
Tld2ClayCfg tool on the tld files for these 3rd party libs. There is a sample 
app in the sandbox which demonstrates this.

A sample Clay component definition with validation (using commons validator) 
from the shale-clay-usecases:


















Hermod

-Original Message-
From: Bernhard Slominski [mailto:[EMAIL PROTECTED]
Sent: Friday, February 09, 2007 8:58 AM
To: user@shale.apache.org
Subject: Clay Using Taglibs (e.g validation)


Hi,

I want to use the Clay HTML views together with the Shale validation.
How do I integrate the taglib directive
<%@ taglib uri="http://shale.apache.org/core"; prefix="val" %>
into my HTML view?
How can I integrate other 3rd Party taglibs?

Bernhard



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: maven build problem of latest svn trunk

2007-02-02 Thread hermod.opstvedt
Hi

Most likely an error (duplicate lines)  in the assembly section of the pom.

Hermod

-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 2:33 PM
To: user@shale.apache.org
Subject: maven build problem of latest svn trunk


Results :
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0

  Found PropertyDescriptor [EMAIL PROTECTED]
[INFO] [jar:jar]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error assembling JAR

Embedded error: The attribute "Implementation-Title" may not occur more
than once in the same section


Any hints for me whats wrong?

kind regards

Torsten


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: shale-usecases doesn't deploy on weblogic 9.2 MP1

2007-02-02 Thread hermod.opstvedt
Hi

Knowing  application servers, there is one possible source of an error like 
this. Its the classpath: section og the manifest.mf file inside the jar file. 
If this is mangled for some reason or the container is buggy about it, the that 
may be the culprit you are looking for.

Hermod

-Original Message-
From: Alessio Harri [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 1:14 PM
To: user@shale.apache.org
Subject: RE: shale-usecases doesn't deploy on weblogic 9.2 MP1


I configured weblogic to load the classes from my application first.
I still get this error. I don't think that shales-validation works in
Weblogic 9.2 . I will see if BEA have any answers.

-Original Message-
From: Alessio Harri [mailto:[EMAIL PROTECTED]
Sent: 02 February 2007 02:03
To: user@shale.apache.org
Subject: RE: shale-usecases doesn't deploy on weblogic 9.2 MP1


Hi 

I will try your suggestions.
The classloader is trying to load a linebreak. I debugged it inside eclipse and
the classname being passed to GenericClassLoader is /n.
I have removed shale-validator-1.0.4.jar from my app and it deploys fine.
Unfortunately I won't be able to make use of the validation feature of Shale
until this is resolved.

Regards
Alessio

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 February 2007 01:54
To: user@shale.apache.org
Subject: RE: shale-usecases doesn't deploy on weblogic 9.2 MP1


Hi

The validator doesn't try to load anything - Its 
weblogic.utils.classloaders.GenericClassLoader that loads classes (Look at the 
stacktrace). It is definitly not trying to load a linebreak - Its just not 
reporting the class that is trying to load.

The usecase deploy fine to Tomcat (except 5.5.20/jdk1.5 combo)  and other 
appservers. My guess is that you are seing a clashing of classes. That is that 
the container loads some stuff from its own lib directory before loading your 
stuff. Try altering the class-loader strategy to parent-last

Hermod

-Original Message-
From: Alessio Harri [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 11:54 AM
To: user@shale.apache.org
Subject: RE: shale-usecases doesn't deploy on weblogic 9.2 MP1


Hi Hermod

I do include commons-validator-1.3.1.jar  in my app and it is in
the shale-usecases app.The log file indicates that it is trying to 
load a linebreak as a class ie. /n
So for some reason shale validator is trying to load /n as a class.

Any ideas ? this is not a bug in my app because it doesn't deploy
shale-usecases.war from the shale site either.

Regards
Alessio

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 February 2007 12:45
To: user@shale.apache.org
Subject: RE: shale-usecases doesn't deploy on weblogic 9.2 MP1


Hi

You need to look through yours logs in order to identify which class it can not 
find.

In particular the shale-validator depends on commons-validator-1.3.1.jar

Hermod

-Original Message-
From: Alessio Harri [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 11:39 AM
To: user@shale.apache.org
Subject: shale-usecases doesn't deploy on weblogic 9.2 MP1


Hi all

I am able to deploy the shale-blank app on weblogic 9.2  but NOT shale-usecases.

After alot of trial and error I discovered that it will deploy if I remove 
shale-validator-1.0.4.jar from the lib folder.

My app currently uses shale-validator-1.0.4.jar  so I cannot get it to deploy.

Any help will be appreciated.  

Regards 
Alessio

This is the stacktrace

<2007/02/02 12:35:08 PM> 
<2007/02/02 12:35:08 PM> 
2007/02/02 12:35:08 org.apache.shale.dialog.basic.BasicLifecycleListener 
contextDestroyed
INFO: Finalizing Dialog Basic Implementation
<2007/02/02 12:35:08 PM> 
<2007/02/02 12:35:08 PM> 
<2007/02/02 12:35:08 PM> 



Metropolitan is an authorised Financial Services Provider.

NOTE: This e-mail (including attachments) is subject to the restrictions, 
qualifications and disclaimers (the "disclaimer") published at 
http://www.metropolitan.co.za Please read the disclaimer before opening any 
attachments or taking any other action in terms of this e-mail.
If you cannot access the disclaimer, kindly send an e-mail to [EMAIL PROTECTED] 
or contact [EMAIL PROTECTED] and a copy will be sent to you.
By reading this e-mail or opening any attachment you agree to be bound by the 
provisions of the disclaimer.

Web: http://www.metropolitan.co.za/
Disclaimer: http://www.metropolitan.co.za/email_disclaimer.html


Metropolitan Life subscribes to KPMG, a completely independent crime disclosure 
service - make a contribution to the establishment of a fraud free environment 
by reporting any suspicion to the KPMG Hotline
 
 * RSA 0800 22 14 18 
 * NAMIBIA 0800 00 00 77




* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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 a

RE: shale-usecases doesn't deploy on weblogic 9.2 MP1

2007-02-02 Thread hermod.opstvedt
Hi

The validator doesn't try to load anything - Its 
weblogic.utils.classloaders.GenericClassLoader that loads classes (Look at the 
stacktrace). It is definitly not trying to load a linebreak - Its just not 
reporting the class that is trying to load.

The usecase deploy fine to Tomcat (except 5.5.20/jdk1.5 combo)  and other 
appservers. My guess is that you are seing a clashing of classes. That is that 
the container loads some stuff from its own lib directory before loading your 
stuff. Try altering the class-loader strategy to parent-last

Hermod

-Original Message-
From: Alessio Harri [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 11:54 AM
To: user@shale.apache.org
Subject: RE: shale-usecases doesn't deploy on weblogic 9.2 MP1


Hi Hermod

I do include commons-validator-1.3.1.jar  in my app and it is in
the shale-usecases app.The log file indicates that it is trying to 
load a linebreak as a class ie. /n
So for some reason shale validator is trying to load /n as a class.

Any ideas ? this is not a bug in my app because it doesn't deploy
shale-usecases.war from the shale site either.

Regards
Alessio

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 February 2007 12:45
To: user@shale.apache.org
Subject: RE: shale-usecases doesn't deploy on weblogic 9.2 MP1


Hi

You need to look through yours logs in order to identify which class it can not 
find.

In particular the shale-validator depends on commons-validator-1.3.1.jar

Hermod

-Original Message-
From: Alessio Harri [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 11:39 AM
To: user@shale.apache.org
Subject: shale-usecases doesn't deploy on weblogic 9.2 MP1


Hi all

I am able to deploy the shale-blank app on weblogic 9.2  but NOT shale-usecases.

After alot of trial and error I discovered that it will deploy if I remove 
shale-validator-1.0.4.jar from the lib folder.

My app currently uses shale-validator-1.0.4.jar  so I cannot get it to deploy.

Any help will be appreciated.  

Regards 
Alessio

This is the stacktrace

<2007/02/02 12:35:08 PM> 
<2007/02/02 12:35:08 PM> 
2007/02/02 12:35:08 org.apache.shale.dialog.basic.BasicLifecycleListener 
contextDestroyed
INFO: Finalizing Dialog Basic Implementation
<2007/02/02 12:35:08 PM> 
<2007/02/02 12:35:08 PM> 
<2007/02/02 12:35:08 PM> 



Metropolitan is an authorised Financial Services Provider.

NOTE: This e-mail (including attachments) is subject to the restrictions, 
qualifications and disclaimers (the "disclaimer") published at 
http://www.metropolitan.co.za Please read the disclaimer before opening any 
attachments or taking any other action in terms of this e-mail.
If you cannot access the disclaimer, kindly send an e-mail to [EMAIL PROTECTED] 
or contact [EMAIL PROTECTED] and a copy will be sent to you.
By reading this e-mail or opening any attachment you agree to be bound by the 
provisions of the disclaimer.

Web: http://www.metropolitan.co.za/
Disclaimer: http://www.metropolitan.co.za/email_disclaimer.html


Metropolitan Life subscribes to KPMG, a completely independent crime disclosure 
service - make a contribution to the establishment of a fraud free environment 
by reporting any suspicion to the KPMG Hotline
 
 * RSA 0800 22 14 18 
 * NAMIBIA 0800 00 00 77




* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


Metropolitan is an authorised Financial Services Provider.

NOTE: This e-mail (including attachments) is subject to the restrictions, 
qualifications and disclaimers (the "disclaimer") published at 
http://www.metropolitan.co.za Please read the disclaimer before opening any 
attachments or taking any other action in terms of this e-mail.
If you cannot access the disclaimer, kindly send an e-mail to [EMAIL PROTECTED] 
or contact [EMAIL PROTECTED] and a copy will be sent to you.
By reading this e-mail or opening any attachment you agree to be bound by the 
provisions of the disclaimer.

Web: http://www.metropolitan.co.za/
Disclaimer: http://www.metropolitan.co.za/email_disclaimer.html


Metropolitan Life subscribes to KPMG, a completely independent crime disclosure 
service - make a contribution to the establishment of a fraud free environment 
by reporting any suspicion to the KPMG Hotline
 
 * RSA 0800 22 14 18 
 * NAMIBIA 0800 00 00 77




RE: shale-usecases doesn't deploy on weblogic 9.2 MP1

2007-02-02 Thread hermod.opstvedt
Hi

You need to look through yours logs in order to identify which class it can not 
find.

In particular the shale-validator depends on commons-validator-1.3.1.jar

Hermod

-Original Message-
From: Alessio Harri [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 11:39 AM
To: user@shale.apache.org
Subject: shale-usecases doesn't deploy on weblogic 9.2 MP1


Hi all

I am able to deploy the shale-blank app on weblogic 9.2  but NOT shale-usecases.

After alot of trial and error I discovered that it will deploy if I remove 
shale-validator-1.0.4.jar from the lib folder.

My app currently uses shale-validator-1.0.4.jar  so I cannot get it to deploy.

Any help will be appreciated.  

Regards 
Alessio

This is the stacktrace

<2007/02/02 12:35:08 PM> 
<2007/02/02 12:35:08 PM> 
2007/02/02 12:35:08 org.apache.shale.dialog.basic.BasicLifecycleListener 
contextDestroyed
INFO: Finalizing Dialog Basic Implementation
<2007/02/02 12:35:08 PM> 
<2007/02/02 12:35:08 PM> 
<2007/02/02 12:35:08 PM> 



Metropolitan is an authorised Financial Services Provider.

NOTE: This e-mail (including attachments) is subject to the restrictions, 
qualifications and disclaimers (the "disclaimer") published at 
http://www.metropolitan.co.za Please read the disclaimer before opening any 
attachments or taking any other action in terms of this e-mail.
If you cannot access the disclaimer, kindly send an e-mail to [EMAIL PROTECTED] 
or contact [EMAIL PROTECTED] and a copy will be sent to you.
By reading this e-mail or opening any attachment you agree to be bound by the 
provisions of the disclaimer.

Web: http://www.metropolitan.co.za/
Disclaimer: http://www.metropolitan.co.za/email_disclaimer.html


Metropolitan Life subscribes to KPMG, a completely independent crime disclosure 
service - make a contribution to the establishment of a fraud free environment 
by reporting any suspicion to the KPMG Hotline
 
 * RSA 0800 22 14 18 
 * NAMIBIA 0800 00 00 77




* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Re[10]: Problems with example war

2006-12-20 Thread hermod.opstvedt
Hi

Just to make sure, I also checked 5.5.17, and it works on that version too. SO! 
Stay away from Tomcat 5.5.20 - Its somehow broken

Hermod

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 20, 2006 10:54 AM
To: user@shale.apache.org
Subject: RE: Re[10]: Problems with example war


Hi

The problem seems to be related to Tomcat versions above 5.5.16. I have 4 clean 
Tomcat 5.5 installations (5.5.9 5.5.12 5.5.16 and 5.5.20) and the same sample 
runs non 5.5.9, 5.5.12 and 5.5.16 but fails on 5.5.20 with:

[10   2006-12-20 10:37:06,010](org.apache.catalina.core.ContainerBase.[C
atalina].[localhost].[/shaletest])**ERROR**{org.apache.catalina.core.Application
Context.log:675} User: ->StandardWrapper.Throwable
java.lang.IllegalStateException: No Factories configured for this Application -
typically this is because a context listener is not setup in your web.xml.
A typical config looks like this;

  org.apache.myfaces.webapp.StartupServletContextListener


Having spaces in the Tomcat installation name does not seem to matter. I don't 
know if there are ant 3.party libaries that changed between these two, or if 
this is a change internally in Tomcat. I am leaning towards this being a locale 
problem, since this works on US locale workstations, but not on DE or NO.

When running on 5.5.9, 5.5.12, and 5.5.16 I get a message during startup that 
might lead us somewhere:

[02006-12-20 10:47:48,835](org.apache.myfaces.util.LocaleUtils)**ERR
OR**{org.apache.myfaces.util.LocaleUtils.toLocale:50} User: ->Locale name null o
r empty, ignoring

Hermod

-Original Message-
From: Thomas Walland [mailto:[EMAIL PROTECTED]
Sent: Monday, October 30, 2006 10:04 AM
To: Craig McClanahan
Subject: Re[10]: Problems with example war


I solved the problem!

I don't know if this is only a problem on my machine. I used a german
windows xp professional edition and installed tomcat in de suggested
default path unter c:\programms\apache software foundation\tomcat
5.5\...

Seems this is a too long name for shale or something other or some
part of the framework or something other is not able to handle blanks
in directory names.

Now i have reinstalled tomcat under c:\tomcat55. A very short
directory name without blanks. After putting the war to this directory
and starting the server the example works well.

maybe this is only a problem with windows users or with german windows
users? i don't know. But the default path to install doesn't work
well.

Thank's for your help :-)

Thomas



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Re[10]: Problems with example war

2006-12-20 Thread hermod.opstvedt
Hi

The problem seems to be related to Tomcat versions above 5.5.16. I have 4 clean 
Tomcat 5.5 installations (5.5.9 5.5.12 5.5.16 and 5.5.20) and the same sample 
runs non 5.5.9, 5.5.12 and 5.5.16 but fails on 5.5.20 with:

[10   2006-12-20 10:37:06,010](org.apache.catalina.core.ContainerBase.[C
atalina].[localhost].[/shaletest])**ERROR**{org.apache.catalina.core.Application
Context.log:675} User: ->StandardWrapper.Throwable
java.lang.IllegalStateException: No Factories configured for this Application -
typically this is because a context listener is not setup in your web.xml.
A typical config looks like this;

  org.apache.myfaces.webapp.StartupServletContextListener


Having spaces in the Tomcat installation name does not seem to matter. I don't 
know if there are ant 3.party libaries that changed between these two, or if 
this is a change internally in Tomcat. I am leaning towards this being a locale 
problem, since this works on US locale workstations, but not on DE or NO.

When running on 5.5.9, 5.5.12, and 5.5.16 I get a message during startup that 
might lead us somewhere:

[02006-12-20 10:47:48,835](org.apache.myfaces.util.LocaleUtils)**ERR
OR**{org.apache.myfaces.util.LocaleUtils.toLocale:50} User: ->Locale name null o
r empty, ignoring

Hermod

-Original Message-
From: Thomas Walland [mailto:[EMAIL PROTECTED]
Sent: Monday, October 30, 2006 10:04 AM
To: Craig McClanahan
Subject: Re[10]: Problems with example war


I solved the problem!

I don't know if this is only a problem on my machine. I used a german
windows xp professional edition and installed tomcat in de suggested
default path unter c:\programms\apache software foundation\tomcat
5.5\...

Seems this is a too long name for shale or something other or some
part of the framework or something other is not able to handle blanks
in directory names.

Now i have reinstalled tomcat under c:\tomcat55. A very short
directory name without blanks. After putting the war to this directory
and starting the server the example works well.

maybe this is only a problem with windows users or with german windows
users? i don't know. But the default path to install doesn't work
well.

Thank's for your help :-)

Thomas



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Clay, Tomahawk and jscookmenu

2006-12-17 Thread hermod.opstvedt
Hi

Creating a Maven Archetype for Clay is something that I am currently working 
on, because we need it here at work. So that should be wrapped up in the next 
day or two.

Hermod

-Original Message-
From: Gary VanMatre [mailto:[EMAIL PROTECTED]
Sent: Monday, December 18, 2006 12:30 AM
To: user@shale.apache.org; [EMAIL PROTECTED]
Subject: Re: SV: Clay, Tomahawk and jscookmenu


>From: Hermod Opstvedt <[EMAIL PROTECTED]> 
>
> Hi 
> 
> Your assumptions are correct. As I stated in my first mail, I had to do some 
> tweaks. In the jscookmenu that comes with tomahawk 1.3 there are some coding 
> errors/presumptions that need to be worked around. Mainly, assumptions about 
> where pages are situated relative to the jscookmenu stuff. That is why I > 
> grabbed the script from the originators of jscookmenu and used that script 
> instead (Also had to alter some hardcoded stuff in there). 
> 
> I have not had the time to look into 1.5 of Tomahawk yet to see if that > 
> version works better that the 1.3 version, but I have it on my agenda to do 
> so during the upcomming holidays. If there are issues related to Clay, I > 
> will try to identify and rectify them. 
> 

 
That sounds awesome.  We sure could use the help identifying Clay/Tomahawk
issues or any component library.

I recently started the Clay/Trinidad project in the sandbox and I'm pretty happy
with the compatibility.  It uses Hermod's maven plugin to build the Clay configs
from the TLD.  

I think the best course of action is to create maven archetype's to setup a 
projects with the extra Clay bits.  This way they don't add 
another dependency to their build and we (Shale Clay Enthusiasts) 
don't have the myfaces clout to make that integration native. 

   

> Hermod 
> 

Gary

> -Opprinnelig melding- 
> Fra: Steve Olson [mailto:[EMAIL PROTECTED] 
> Sendt: 17. desember 2006 17:55 
> Til: user@shale.apache.org 
> Emne: Re: Clay, Tomahawk and jscookmenu 
> 
> Thanks for the info. I looked at both the code below and your site, and > 
> have a couple questions. It looks like you had to essentially render your 
> own menu, as if the jscookmenu renderer wasn't used. Also the call to 
> cmDrawFromText - the jscookmenu.js that comes with the tomahawk 1.1.3 jar > 
> doesn't seem to define cmDrawFromText. I can see on the jscook site that > 
> this is a valid function so are you using a newer jscook version than the 
> tomhawk jar does, or am I just missing something? 
> 
> Also, it looked like you had to extract the resources (.js, .gif, etc) for 
> jscookmenu from the tomahawk jar into your own directories and explicitly > 
> include them, as if org.apache.myfaces.webapp.filter.ExtensionsFilter also 
> wasn't working. Is that what you had to do? Am I understanding things 
> correctly here? 
> 
> I was hoping to get html something like this working, but this just renders 
> a default submit Query button as an input control (!?): 
> 
> > theme="ThemeOffice"> 
> 
> > itemValue="#{messages['menu1']}" action="#{homePage.menu1}"/> 
> 
> > itemValue="#{messages['menu2']}" action="#{homePage.menu2}"/> 
> 
> 
> 
> It'd be nice if this would rely on the tomahawk infastructure to provide the 
> 
> same rendering it does without using Clay. Is there a conflict/bug here > 
> between Clay and tomahawk with how it renders jscookmenu controls? 
> 
> If this is a bug or an RFE, I don't see anything listed in the Shale Jira. 
> I'm also assuming this is a Clay issue, since it works in JSP, but maybe > 
> that's a bad assumption :-). Anyway, I have some time available and would 
> be interested in contributing a patch (assuming I can figure one out :-) if 
> that would be useful. 
> 
> Do you agree that this is a Clay bug? Do you know of anyone else already > 
> looking into this? Should this be a new clay Jira issue? 
> 
> - Original Message - 
> From: "Hermod Opstvedt" 
> To: 
> Sent: Sunday, December 17, 2006 7:29 AM 
> Subject: SV: Clay, Tomahawk and jscookmenu 
> 
> 
> > Hi 
> > 
> > Look at http://test.os-seilforening.org. This uses the aforementioned > > 
> > combination. However, I had to tweak it a bit to get it working. 
> > 
> > Here is the code: 
> > 
> > 

> > 

> > 

> > > > value="#{facesContext.externalContext.requestContextPath}/index.xml" 
> > target="_self" alt="#{messages['nav_Home.alt']}"> 
> > > > value="#{messages['nav_Home']}"> 
> > 
> > 

> > 


> > 

> > > > value="#{facesContext.externalContext.requestContextPath}/open/medlem.xml"
> > > >  
> > target="_self" alt="#{messages['nav_Medlem.alt']}"> 
> > > > value="#{messages['nav_Medlem']}"> 
> > 
> > 

> > 


> > 

> > > > 
> value="#{facesContext.externalContext.requestContextPath}/open/regatta.xml" 
> > target="_self" alt="#{messages['nav_Regatta.alt']}"> 
> > > > value="#{messages['nav_Regatta']}"> 
> > 
> > 

> > 

> > > > 
> value="#{facesContext.externalContext.requestContextPath}/open/arrangement.x 
> > ml?arrid=O2" target="_self" alt="#{messages['nav_Regatta_Otto.alt']}"> 

RE: Clay, Tomahawk and jscookmenu

2006-12-17 Thread hermod.opstvedt
Hi

Gary, is this something that we need to adress in the Tld2Clayconfig tool 
(rendertype) ?

Hermod

-Original Message-
From: Gary VanMatre [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 17, 2006 11:59 PM
To: user@shale.apache.org
Subject: Re: Clay, Tomahawk and jscookmenu


>From: "Steve Olson" <[EMAIL PROTECTED]> 
>
> Thanks for the info. I looked at both the code below and your site, and > 
> have a couple questions. It looks like you had to essentially render your 
> own menu, as if the jscookmenu renderer wasn't used. Also the call to 
> cmDrawFromText - the jscookmenu.js that comes with the tomahawk 1.1.3 jar > 
> doesn't seem to define cmDrawFromText. I can see on the jscook site that > 
> this is a valid function so are you using a newer jscook version than the 
> tomhawk jar does, or am I just missing something? 
> 
> Also, it looked like you had to extract the resources (.js, .gif, etc) for 
> jscookmenu from the tomahawk jar into your own directories and explicitly > 
> include them, as if org.apache.myfaces.webapp.filter.ExtensionsFilter also 
> wasn't working. Is that what you had to do? Am I understanding things 
> correctly here? 
> 
> I was hoping to get html something like this working, but this just renders 
> a default submit Query button as an input control (!?): 
> 
> > theme="ThemeOffice"> 
> 
> > itemValue="#{messages['menu1']}" action="#{homePage.menu1}"/> 
> 
> > itemValue="#{messages['menu2']}" action="#{homePage.menu2}"/> 
> 
> 
> 
> It'd be nice if this would rely on the tomahawk infastructure to provide the 
> same rendering it does without using Clay. Is there a conflict/bug here > 
> between Clay and tomahawk with how it renders jscookmenu controls? 
> 
> If this is a bug or an RFE, I don't see anything listed in the Shale Jira. 
> I'm also assuming this is a Clay issue, since it works in JSP, but maybe > 
> that's a bad assumption :-). Anyway, I have some time available and would 
> be interested in contributing a patch (assuming I can figure one out :-) if 
> that would be useful. 
> 
> Do you agree that this is a Clay bug? Do you know of anyone else already > 
> looking into this? Should this be a new clay Jira issue? 
>

It looks like there are a couple issue here.  The first is that the renderType 
of the jscookMenu is lost.  Some of the myfaces tomahawk components 
don't return / override the renderType.  In this case it's picking up a default 
button renderType.

This can be easily fixed by overriding it in the Clay conifg.  We will need to 
change this in the base tomahawk 1.3 config but consider the following example:


   
 
   


The next problem is that the javascript is not being added.  I tracked this 
down to the myfaces ExtensionsFilter.  The filter injects javascript into the 
response but it's insistent that the response's contentType is set so it can 
determine if it should process the resource for insertion.  The 
ClayViewHander is not explicitly setting the response's content type.  

You have uncovered a couple bugs here.  Please create a JIRA ticket 
on this one (http://shale.apache.org/issue-tracking.html).  I'd like to get a 
fix in before the next shale release.


Gary


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: CLAY: Using clay to import file in remoting method

2006-12-07 Thread hermod.opstvedt
Hi

Right on :)

Hermod

-Original Message-
From: Ian.Priest [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 07, 2006 11:05 AM
To: user@shale.apache.org
Subject: RE: CLAY: Using clay to import file in remoting method



If I might refer you all back to the original question...

I don't want to update the component tree via a remoting call.
I do want to use Clay to render a chunk of HTML from within the remoting
method. I want to do that for consistency; it's how everything else on
the site is rendered.
I do want the remoting method to return a chunk of HTML which the page
then uses by (as Hermod realised) setting "div.innerHTML =
originalRequest.responseText"

It sounds as though Clay won't currently do that. It would be very
useful if it could be persuaded to. 
I have instead coded my remoting call to use Freemarker templates to
generate the HTML. That's a pain in the backside as some of the fields
use converters, which I have to provide in the Freemarker model, and
because it means a second set of HTML that renders in a different
manner, that I need to manage and that the 3rd-party design agency need
to learn to deal with. And that HTML, of course, isn't "plain html" in
the way that Clay pages can be.

Cheers,
Ian.


  

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: 07 December 2006 08:15
> To: user@shale.apache.org
> Subject: RE: SV: CLAY: Using clay to import file in remoting method
> 
> Hi
> 
> Ok, that got a load of my shoulders.
> 
> Now, I obvously worded my intentions wrong here. What I am 
> thinking of is the case that when an asynchronous request 
> comes in there should be the possibility for Clay to render 
> the response. I am not suggesting to alter the component tree 
> as per se. I am aware that doing so would be dangerous, 
> particularly in the case where the state is held on the 
> client (Severside we could have full controll over the 
> component tree). 
> 
> Lets assume that I have a table on my page, that I want to 
> update using Ajax. Now there are two possibilities here. The 
> first beeing just returning data that is then handled on the 
> client side using a JSON type DOM altering. The other would 
> be to just set the .innerHtml of the DOM component with a 
> serverside rendered response. It's the latter scenario that I 
> am thinking about and where using Clay to do the rendering.
> 
> Hemrod
> 
> -Original Message-
> From: Gary VanMatre [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 06, 2006 10:45 PM
> To: user@shale.apache.org; [EMAIL PROTECTED]
> Subject: Re: SV: CLAY: Using clay to import file in remoting method
> 
> 
> >From: Hermod Opstvedt <[EMAIL PROTECTED]>
> >
> > Hi
> > 
> > I think we need to give this a good hard thought. What you 
> (if I read 
> > you
> > right) are saying in essence is that Shale/Clay and Ajax 
> will not work. 
> > 
> 
> No, I'm *not* saying that Shale/Clay and Ajax will not work.  
> The testbed in the sandbox is proof that it will work.  There 
> are are a couple of pages that use Trinidad's built in Ajax 
> support and it works really well.  I'm using clay templates 
> with namespaces so they look pretty much like JSP.
> 
> http://svn.apache.org/viewvc/shale/sandbox/shale-clay-trinidad
/src/main/webapp/pages/catalog.html?view=markup
> 
> All you have to do is nest the components you want partial 
> rendering on in a panelPartialRoot component.
> 
> 
>  partialSubmit="true" text="#{foo.name}"/> 
> 
> 
> These components know how to render the javascript required for PPR.  
> This stuff is really a works of craftsmanship.  I've been 
> told that this is their first generation of components.  The 
> future stuff will blow you away with drag and drop and other 
> sick client side effects.
> 
> However, I don't believe that these components will allow you 
> to dynamically change the structure of a view without 
> recreating it.  They don't have client side code adding 
> widgets that are not already represented by some component in 
> the backing view.  The client is not swapping out chunks of 
> the view tree using Ajax calls and then allowing the entire 
> page to be posted back as a whole.
> 
> 
> > That is a scenario that we can not have - This needs to be 
> addressed, 
> > otherwise we will loose out before we even begin.
> > 
> 
> The scenario that Clay will need some help with is Ajax + dynamic 
> views using Shale's remoting.
> 
> There are multiple scenarios for using remoting.  The Shale 
> remoting is 
> service centric versus component centric.
> 
> 
> > The scenario that I outlined, is something that we need to 
> support in these 
> > web 2.0(3.0?) days because fullpage rendering of dynamic 
> content is not 
> > acceptable anymore - hence the efforts of PPR in for 
> instance in Trinidad 
> > and also other opensource projects. If PPR of Dynamic 
> MyFaces stuff can be 
> > achieved than it should also be doable in Shale/Clay 
> > 
> 
> The chall

RE: CLAY: Using clay to import file in remoting method

2006-12-07 Thread hermod.opstvedt
Hi

I am not blaming Clay or Shale for anything - far from it because I am a firm 
believer :)

If you read my reply to Gary, it might be a bit clearer what I was trying to 
describe. I was not expecting CLay to handle the synchronization of the tree, 
only being responsible for rendering a response to the asyncronous request, 
where the rendered respons is just an html fragment, for instance a html table.

Hermod

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig
McClanahan
Sent: Thursday, December 07, 2006 7:40 AM
To: user@shale.apache.org; [EMAIL PROTECTED]
Subject: Re: CLAY: Using clay to import file in remoting method


On 12/6/06, Hermod Opstvedt <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I think we need to give this a good hard thought. What you (if I read you
> right) are saying in essence is that Shale/Clay and Ajax will not work.


You are not understanding Gary correctly.  What you are trying to do, it
seems, is based on incorrect expectations.

With regards to JSF and AJAX, there are two fundamental paradigms that can
be addressed:

* Keep the JSF component tree up to date with respect to dynamic
  changes that happen because of asynchronous interactions.

* Ignore the JSF component tree, and just serve the asynchronous
  requests.

You seem to be expecting the former, and blaming Clay because this doesn't
happen.  The reality is that Shale Remoting is focused on the latter case,
not the former.  The fact that synchronizing changes to the component tree
is based on that fact -- using Clay, or JSP, or Facelets, or anything else
as the view tier has nothing to do with it.

There are many solutions to the former use case.  Unfortunately, most of
them seem to be intimately tied to a particular component library.  One that
is not, which pleases me from an architectural viewpoint, is Dynamic Faces (
https://jsf-extensions.dev.java.net), which will work just fine with Shale
functionality.

Please don't assume that Clay is the problem here -- it should NOT have the
responsibility for synchronizing the component trees.  If you need that, use
a framework in concert with Clay that supports this.  If you don't (and
therefore can achieve better overhead because you're not sending dynamically
updated component trees for the entire page back and forth), use Shale
Remoting.

The key -- your goal should be that these decisions (sync versus not, and
which view technology you like) should be independently mixable, not forced
upon you by the choice of one or the other.

Craig


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: SV: CLAY: Using clay to import file in remoting method

2006-12-07 Thread hermod.opstvedt
Hi

Ok, that got a load of my shoulders.

Now, I obvously worded my intentions wrong here. What I am thinking of is the 
case that when an asynchronous request comes in there should be the possibility 
for Clay to render the response. I am not suggesting to alter the component 
tree as per se. I am aware that doing so would be dangerous, particularly in 
the case where the state is held on the client (Severside we could have full 
controll over the component tree). 

Lets assume that I have a table on my page, that I want to update using Ajax. 
Now there are two possibilities here. The first beeing just returning data that 
is then handled on the client side using a JSON type DOM altering. The other 
would be to just set the .innerHtml of the DOM component with a serverside 
rendered response. It's the latter scenario that I am thinking about and where 
using Clay to do the rendering.

Hemrod

-Original Message-
From: Gary VanMatre [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 06, 2006 10:45 PM
To: user@shale.apache.org; [EMAIL PROTECTED]
Subject: Re: SV: CLAY: Using clay to import file in remoting method


>From: Hermod Opstvedt <[EMAIL PROTECTED]> 
>
> Hi 
> 
> I think we need to give this a good hard thought. What you (if I read you 
> right) are saying in essence is that Shale/Clay and Ajax will not work. 
> 

No, I'm *not* saying that Shale/Clay and Ajax will not work.  The testbed in the
sandbox is proof that it will work.  There are are a couple of pages that use
Trinidad's built in Ajax support and it works really well.  I'm using clay
templates with namespaces so they look pretty much like JSP.

http://svn.apache.org/viewvc/shale/sandbox/shale-clay-trinidad/src/main/webapp/pages/catalog.html?view=markup

All you have to do is nest the components you want partial rendering on 
in a panelPartialRoot component.





These components know how to render the javascript required for PPR.  
This stuff is really a works of craftsmanship.  I've been told that this is 
their 
first generation of components.  The future stuff will blow you away 
with drag and drop and other sick client side effects.

However, I don't believe that these components will allow you to dynamically 
change the structure of a view without recreating it.  They don't have client 
side code adding widgets that are not already represented by some component 
in the backing view.  The client is not swapping out chunks of the view
tree using Ajax calls and then allowing the entire page to be posted back
as a whole.


> That is a scenario that we can not have - This needs to be addressed, 
> otherwise we will loose out before we even begin. 
> 

The scenario that Clay will need some help with is Ajax + dynamic 
views using Shale's remoting.

There are multiple scenarios for using remoting.  The Shale remoting is 
service centric versus component centric.


> The scenario that I outlined, is something that we need to support in these 
> web 2.0(3.0?) days because fullpage rendering of dynamic content is not 
> acceptable anymore - hence the efforts of PPR in for instance in Trinidad 
> and also other opensource projects. If PPR of Dynamic MyFaces stuff can be 
> achieved than it should also be doable in Shale/Clay 
> 

The challenge here is that this type of PPR is coupled with the components.  It
would be very difficult to create this type of generic snap-in remoting for 
components that were not build with this support in mind 
(the shale commons validator comes to mind).

Clay is a tool/utility for composing JSF views using something other than JSP.
It doesn't modify or add behaivor to the components it just snaps them 
together.


> So lets put our heads on the block :) 
> 

I wouldn't mind doing some work in this area but it would shift the focus 
of Shale more into component ware.


> Hermod 
> 

Gary

> 
> 
> -Opprinnelig melding- 
> Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] 
> Sendt: 6. desember 2006 18:54 
> Til: user@shale.apache.org 
> Emne: RE: CLAY: Using clay to import file in remoting method 
> 
> >From: 
> > 
> > Hi 
> > 
> > I think that this can be very useful in conjunction with PPR. In this way 
> one 
> > could define an outcome that was just a Clay component, where the 
> component was 
> > not a complete page, but a pagefraction. It would then be very easy to use 
> Ajax 
> > to put that into the div's innerhtml because it would(should) be a 
> complete 
> > component body. There might be implications regarding state that I don't 
> see 
> > though. 
> > 
> 
> This would be really interesting but there are several challenges. I've 
> been looking at the myfaces Trinidad components. The provide a parital page 
> rendering strategy that is a different from Shale's remoting. 
> 
> Shale's remoting is build for invoking logic in a backing bean and 
> delivering a XML response. It doesn't try to use the component tree that 
> rendered the original page. 
> 
> The Trinidad component library for P

RE: reusable application fragments

2006-12-06 Thread hermod.opstvedt
Hi

I was looking through the recipe you added to the 
wiki(http://wiki.apache.org/shale/ReusableClayJars) Ryan, and I noticed a small 
(but significant) typo.

In the Login class you return "loginmodule.loggedin" when login is ok. Then 
further down(11) you describe a navigation rule that has a navigation-case with 
frome-outcome: loginmodule.done <- This should probably be loginmodule.loggedin?

Hermod



-Original Message-
From: Ryan Wynn [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 5:20 PM
To: user@shale.apache.org
Subject: reusable application fragments


What I am trying to accomplish with clay is to encapsulate a fragment
of an application as a jar file.  In the jar file I have clay and
faces configuration as well as java classes.  The idea is that the
client application will include the fragment jar that provides the
templates, navigation, and application logic.  I want to be able to
pass control from the client application to the fragment by
referencing a view id with the classpath*:com/bar/foo.html syntax.
From this point the fragment jar will reference it's own pages using
the same classpath*:com/bar/foo.html syntax for view ids.  Then when
the fragment is done doing what it needs to do it can forward back to
the client using a view id like /done.html.  The client would need to
implement /done.html so that the transition works.  I guess you could
think of this as another form of dialog.

Is something like classpath*:/com/bar/foo.html supported as a valid
view id?  I am pretty sure all of this is possible using full xml
views, but mixing full xml and html seems to be going against the
grain.


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: CLAY: Using clay to import file in remoting method

2006-12-05 Thread hermod.opstvedt
Hi

I think that this can be very useful in conjunction with PPR. In this way one 
could define an outcome that was just a Clay component, where the component was 
not a complete page, but a pagefraction. It would then be very easy to use Ajax 
to put that into the div's innerhtml because it would(should) be a complete 
component body. There might be implications regarding state that I don't see 
though.

Hermod

-Original Message-
From: Ian.Priest [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 05, 2006 11:22 AM
To: user@shale.apache.org
Subject: RE: CLAY: Using clay to import file in remoting method


 
Responses below... 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: 04 December 2006 15:54
> To: user@shale.apache.org
> Subject: Re: CLAY: Using clay to import file in remoting method
> 
> >From: "Ian.Priest" <[EMAIL PROTECTED]>
> >
> > Hi,
> > 
> > I've set up a couple of remoting methods, but I don't 
> really want to 
> > code the HTML in my java method.
> 
> Are you talking about Shale/Ajax style of remoting?

Yup.

> 
> >What I'd like to do is have the snippet  of HTML returned by my 
> >remoting method defined in the same way as the  rest of the 
> html on the 
> >site; i.e. in an html file that's loaded by  Clay.
> > 
> 
> Do you want to pull this html content from a place other than 
> the classpath or the web context root?

>From within the web-context root. In fact it would live side-by-side
with the main page. So if I had page main.html and wanted to return
snippet.html as the response to the remoting call then I'd arrange it as

/somedir/main.html
/somedir/snippet.html

> Is the html dynamic or static?
> 

The content of snippet.html would be dynamic. In my use case I go and
get a List of extra info about an item and would want snippet.html to
render a table with a row per List entry.

> 
> > My remoting method fetches a detail list when a table row 
> is clicked, 
> > a little like opening the next level of a tree, so what I'd 
> like to do is:
> > 
> > 1. User clicks on row x in the table
> > 2. Remoting method viewController.getDetails() is called 3. 
> > viewController.getDetails() loads details of x as a List and sets a 
> > variable theList 4. viewController.getDetails() creates an 
> instance of 
> > Clay that loads file theDetails.html 5. File 
> theDetails.html renders 
> > as a couple of table rows using
> > viewController.getTheList() to get table contents 6. 
> > viewController.getDetails() gets the HTML rendered by the Clay load 
> > and writes it out as the response to the remoting method
> > 
> 
> Are you trying to render a static document or do you need to 
> collect and store data?
Not static. I collect then want to display more data. My remoting method
gets more information then renders a dynamic document to return as the
response from the remoting method. The dynamic document displays the
extra info.

> 
> Or, are you looking at the Clay runtime options using the 
> shapeValidator callback and you would like to load html fragments?
>
Yes, I'm trying to understand how (or if) I could use class
org.apache.shale.clay.component.Clay to process a subtree and then grab
the HTML result of that processing to return as the output of my
remoting method.

> 
> > Doing the above means the HTML style agency will still be 
> able to edit 
> > the HTML look and feel without me having to edit the Java 
> code for them. 
> 
> What part of the java code are you talking about?

The remoting method. It generates HTML and uses a ResponseWriter to
output the HTML to the page that made the remoting call. I would like to
generate that HTML by calling Clay and having it render a sub-tree, but
I can't see how to do it or even if it can be done. Pseudo-code...

Class MyViewController extends AbstractViewController {

/**
* Called by AJAX function in page main.html
*
* Use Clay to render a dynamic snippet of HTML then return it.
*/
public void aRemotingMethod() {
// Get item id
String id =
getFacesContext().getExternalContext().getRequestMap().get("id");

// Get more detail about item with id
List extraDetails = getExtraDetail(id);

/** This works, but HTML is hard-coded into the
ViewController...
String html = ""
for( String detail: extraDetails ) {
html += "" + detail + "";
}
html += "";

// Can I somehow use Clay here to generate HTML?
// Clay clay = new Clay();
// Need to set URL of snippet.html as view id
// Need to make extraDetail available to the processor.
Make this class
// the ViewController for snippet.html?
// Get clay to process: clay.encodeBegin()?
// Get HTML back from clay somehow once sub-tree is
creat

Modelling dialogs

2006-12-04 Thread hermod.opstvedt
Hi

I guess this is first and foremost targeted at Rahul: Does anybody know of an 
opensource tool (preferably Eclipse based) that will let you model Dialogs flow 
(i.e Statediagrams) and from that create scxml files?

Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Problem with Shale Token

2006-11-07 Thread hermod.opstvedt
Great :)

-Original Message-
From: Adrian Mitev [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 2:34 PM
To: user@shale.apache.org
Subject: Re: Problem with Shale Token


Its working if i add the token as last input component it works as
expected. I wrote a few words [1] for the token usage.

[1] http://wiki.apache.org/shale/Token

On 11/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi
>
> I second that (Should still be on a wiki page too)
>
> Hermod
>
> -Original Message-
> From: Torsten Krah [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 07, 2006 12:35 PM
> To: user@shale.apache.org
> Subject: RE: Problem with Shale Token
>
>
> This would be sufficient but i would like to see it in the tlddoc too.
>
> Torsten
>
> Am Dienstag, den 07.11.2006, 06:29 -0500 schrieb
> [EMAIL PROTECTED]:
> > Er, that's not javadoc - that's comments inside the method. If this was 
> > moved to
> > the javadoc it would be sufficient IMHO.
> >
> >
> > Quoting [EMAIL PROTECTED]:
> >
> > > Hi
> > >
> > > It does if you read the javadoc for org.apache.shale.component.Token in 
> > > the
> > > validate method:
> > > /**
> > >  * Perform superclass validations, then ensure that the specified
> > > input
> > >  * value is acceptable at this point in time.
> > >  *
> > >  * @param context FacesContext for the current request
> > >  */
> > > public void validate(FacesContext context) {
> > >
> > > // If any of the other input components in this form triggered
> > > // validation errors, we do NOT want to validate the token 
> > > component
> > > // here, because that would erase the saved token and prevent the
> > > // subsequent valid resubmit from succeeding.
> > > //
> > > // WARNING - for this test to be successful, the token component 
> > > must
> > > // be the last input component child of the parent form to be
> > > // processed
> > > if (context.getMaximumSeverity() != null) {
> > > .
> > >
> > > I think that maybe the wiki should mention this also though.
> > >
> > >
> > > Hermod
> > >
> > >
> > >
> > > -Original Message-
> > > From: Torsten Krah [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, November 07, 2006 10:47 AM
> > > To: user@shale.apache.org
> > > Subject: Re: Problem with Shale Token
> > >
> > >
> > > Ok its working.
> > >
> > > I did not know until now - that it have to be the last component - i put
> > > it everytime in the front, now it works - the documentation should maybe
> > > tell that.
> > >
> > > Torsten
> > >
> > > Am Montag, den 06.11.2006, 23:49 -0800 schrieb Craig McClanahan:
> > > > On 11/6/06, Torsten Krah <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Token is broken for myfaces greater than 1.1.1.
> > > > >
> > > > > Look there: http://issues.apache.org/struts/browse/SHALE-287
> > > > >
> > > > > Torsten
> > > > >
> > > > > Am Montag, den 06.11.2006, 13:52 +0200 schrieb Adrian Mitev:
> > > > > > Hi all! I have problem using s:token.
> > > > > > I have form with input fields and required="true". When i leave the
> > > > > > field empty, the page is redisplayed with error message. Then i fill
> > > > > > the field with some text and click on the submit button. There i get
> > > > > > error message from the token component. Any suggestions?
> > > > > >
> > > >
> > > >
> > > > OK, I have done a bunch of further investigation of this problem, 
> > > > including
> > > > a new test app (built against MyFaces 1.1.4 and the current trunk code 
> > > > of
> > > > Shale, equivalent to the 20061107 nightly build).  As far as I can tell,
> > > the
> > > > current code works correctly.  I've attached the current version of the
> > > test
> > > > application (shale-test-core.war) to the relevant bug report[1].  
> > > > PLEASE do
> > > > everything you can to cause this app to misbehave with regards to token
> > > > processing, so we can shake out any remaining problems.  But, I assert, 
> > > > the
> > > > problems with the token component in the Shale 1.0.3 release have been
> > > > repaired.  If there are positive reports of lack of ability to break the
> > > > test app, or no comment at all for a few days, I'm going to close this
> > > issue
> > > > as having been fixed.
> > > >
> > > > Craig
> > > >
> > > > [1] http://issues.apache.org/struts/browse/SHALE-287
> > >
> > >
> > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> > > *
> > >
> > > 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.
> > >
> > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> > > *
> > >
> > >
>


-- 
Seeing 

RE: Problem with Shale Token

2006-11-07 Thread hermod.opstvedt
Hi

I second that (Should still be on a wiki page too)

Hermod

-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 12:35 PM
To: user@shale.apache.org
Subject: RE: Problem with Shale Token


This would be sufficient but i would like to see it in the tlddoc too.

Torsten

Am Dienstag, den 07.11.2006, 06:29 -0500 schrieb
[EMAIL PROTECTED]:
> Er, that's not javadoc - that's comments inside the method. If this was moved 
> to
> the javadoc it would be sufficient IMHO.
> 
> 
> Quoting [EMAIL PROTECTED]:
> 
> > Hi
> >
> > It does if you read the javadoc for org.apache.shale.component.Token in the
> > validate method:
> > /**
> >  * Perform superclass validations, then ensure that the specified
> > input
> >  * value is acceptable at this point in time.
> >  *
> >  * @param context FacesContext for the current request
> >  */
> > public void validate(FacesContext context) {
> >
> > // If any of the other input components in this form triggered
> > // validation errors, we do NOT want to validate the token component
> > // here, because that would erase the saved token and prevent the
> > // subsequent valid resubmit from succeeding.
> > //
> > // WARNING - for this test to be successful, the token component 
> > must
> > // be the last input component child of the parent form to be
> > // processed
> > if (context.getMaximumSeverity() != null) {
> > .
> >
> > I think that maybe the wiki should mention this also though.
> >
> >
> > Hermod
> >
> >
> >
> > -Original Message-
> > From: Torsten Krah [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, November 07, 2006 10:47 AM
> > To: user@shale.apache.org
> > Subject: Re: Problem with Shale Token
> >
> >
> > Ok its working.
> >
> > I did not know until now - that it have to be the last component - i put
> > it everytime in the front, now it works - the documentation should maybe
> > tell that.
> >
> > Torsten
> >
> > Am Montag, den 06.11.2006, 23:49 -0800 schrieb Craig McClanahan:
> > > On 11/6/06, Torsten Krah <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Token is broken for myfaces greater than 1.1.1.
> > > >
> > > > Look there: http://issues.apache.org/struts/browse/SHALE-287
> > > >
> > > > Torsten
> > > >
> > > > Am Montag, den 06.11.2006, 13:52 +0200 schrieb Adrian Mitev:
> > > > > Hi all! I have problem using s:token.
> > > > > I have form with input fields and required="true". When i leave the
> > > > > field empty, the page is redisplayed with error message. Then i fill
> > > > > the field with some text and click on the submit button. There i get
> > > > > error message from the token component. Any suggestions?
> > > > >
> > >
> > >
> > > OK, I have done a bunch of further investigation of this problem, 
> > > including
> > > a new test app (built against MyFaces 1.1.4 and the current trunk code of
> > > Shale, equivalent to the 20061107 nightly build).  As far as I can tell,
> > the
> > > current code works correctly.  I've attached the current version of the
> > test
> > > application (shale-test-core.war) to the relevant bug report[1].  PLEASE 
> > > do
> > > everything you can to cause this app to misbehave with regards to token
> > > processing, so we can shake out any remaining problems.  But, I assert, 
> > > the
> > > problems with the token component in the Shale 1.0.3 release have been
> > > repaired.  If there are positive reports of lack of ability to break the
> > > test app, or no comment at all for a few days, I'm going to close this
> > issue
> > > as having been fixed.
> > >
> > > Craig
> > >
> > > [1] http://issues.apache.org/struts/browse/SHALE-287
> >
> >
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> >
> > 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: Problem with Shale Token

2006-11-07 Thread hermod.opstvedt
Hi

It does if you read the javadoc for org.apache.shale.component.Token in the 
validate method:
/**
 * Perform superclass validations, then ensure that the specified input
 * value is acceptable at this point in time.
 *
 * @param context FacesContext for the current request
 */
public void validate(FacesContext context) {

// If any of the other input components in this form triggered
// validation errors, we do NOT want to validate the token component
// here, because that would erase the saved token and prevent the
// subsequent valid resubmit from succeeding.
//
// WARNING - for this test to be successful, the token component must
// be the last input component child of the parent form to be
// processed
if (context.getMaximumSeverity() != null) {
.

I think that maybe the wiki should mention this also though.


Hermod



-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 10:47 AM
To: user@shale.apache.org
Subject: Re: Problem with Shale Token


Ok its working.

I did not know until now - that it have to be the last component - i put
it everytime in the front, now it works - the documentation should maybe
tell that.

Torsten

Am Montag, den 06.11.2006, 23:49 -0800 schrieb Craig McClanahan:
> On 11/6/06, Torsten Krah <[EMAIL PROTECTED]> wrote:
> >
> > Token is broken for myfaces greater than 1.1.1.
> >
> > Look there: http://issues.apache.org/struts/browse/SHALE-287
> >
> > Torsten
> >
> > Am Montag, den 06.11.2006, 13:52 +0200 schrieb Adrian Mitev:
> > > Hi all! I have problem using s:token.
> > > I have form with input fields and required="true". When i leave the
> > > field empty, the page is redisplayed with error message. Then i fill
> > > the field with some text and click on the submit button. There i get
> > > error message from the token component. Any suggestions?
> > >
> 
> 
> OK, I have done a bunch of further investigation of this problem, including
> a new test app (built against MyFaces 1.1.4 and the current trunk code of
> Shale, equivalent to the 20061107 nightly build).  As far as I can tell, the
> current code works correctly.  I've attached the current version of the test
> application (shale-test-core.war) to the relevant bug report[1].  PLEASE do
> everything you can to cause this app to misbehave with regards to token
> processing, so we can shake out any remaining problems.  But, I assert, the
> problems with the token component in the Shale 1.0.3 release have been
> repaired.  If there are positive reports of lack of ability to break the
> test app, or no comment at all for a few days, I'm going to close this issue
> as having been fixed.
> 
> Craig
> 
> [1] http://issues.apache.org/struts/browse/SHALE-287


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: General questions to shale...

2006-11-03 Thread hermod.opstvedt
Hi

First thing to note is that while Struts is page-centric, JSF is 
component-centric.

To describe this in short: In struts a submit/get from a page always goes to an 
action.

In JSF, each component is (may be) wired to its own method in what is known as 
a backing bean (or i Shale ViewController). There is no get, allways post in 
JSF.

This is a shift of pradigms actually, and you need to shift your way of 
thinking when moving to JSF from Struts. Think of it as being more like 
programming in Swing or that that matter what we used to do VB6 back in the old 
days.

Hermod

-Original Message-
From: Thomas Walland [mailto:[EMAIL PROTECTED]
Sent: Friday, November 03, 2006 10:04 AM
To: user@shale.apache.org
Subject: General questions to shale...


Hi,

As I already wrote, I am a newby to apache shale. So I have a few
general questions.

I have great experience with apache struts, but never made some work
with JSF or other technologies which are used in shale.

So I need something like a short introduction in the style of "shale
für struts users".

I heard a lot about the prerenderer. Is this something like the
controller-classes in struts-tiles? A class or action which is called
just before the associated jsp or html file is rendered?

Until now I had only a look to the clay-usecases example which is
distributed on the shale-webpage. In this example, there is a
managed-bean defined (QueryParam) which puts some Request-Parameters
into the defined class.

Can we say in general, that this is a rebuild of the functionality of
the Struts-Action's?

Another question: Most question and mails on this list refer to jsp
functionality and problems with some jsp-errors. As I heard about
struts especially about clay, this was the most interesting point for
me. But it seems that not that much people are using clay at the
moment?

Are there some great disadvantages about this technology? I want to
realize a huge project with shale and also with clay. Is it a too
early stage to use clay? Is there some further developement work,
which should be done?

I hope my questions are clearly written. I am not so an experienced
english-writer.

Thanks :-)
   Thomas

---
Thomas Walland
http://www.walland.net
[EMAIL PROTECTED]



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Question about prerenderer?

2006-11-03 Thread hermod.opstvedt
Hi

You have messed (i.e mixed) things up. Try this:

<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>





Debug






























mailto:#{contact.email}";>












-Original Message-
From: Jonathan Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 02, 2006 10:46 PM
To: user@shale.apache.org
Subject: Re: Question about prerenderer?



ok i using this code the  tage get rendered at the bottom of the  
instead of at the top where it belongs if i put the  wrapping the 
whole div i get the h3 outside and below the div. what can i do to get the h3 
to render before the datatable?

<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>







Debug






























mailto:#{contact.email}";>















_
Stay in touch with old friends and meet new ones with Windows Live Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Clay - tomahawks commandSortHeader

2006-10-19 Thread hermod.opstvedt
Hi

This is from the samples right? I don't think that actually works, but provide 
a stacktrace so we can have a look at it.

Hermod

-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 12:38 PM
To: user@shale.apache.org
Subject: Clay - tomahawks commandSortHeader


Does anybody use this component as symbol to craft column facet headers
which are sortable?
I tried different setups looking at the examples - but everytime i get a
nullpointer exception when encodeEnd on the header is called.

Anyone got a working example?

Torsten



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Clay - how to set locale Parameter for f:view in html/xml views?

2006-10-18 Thread hermod.opstvedt
Hi

In html/xml views, this is handled by you in your backing beans, and when using 
resourcebundles by the message tag

Hermod

-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 12:54 PM
To: user@shale.apache.org
Subject: Clay - how to set locale Parameter for f:view in html/xml
views?


Is there a way to set the locale of the viewRoot?

In the jsp:


...


does the job.

But where to do this in clay html/xml views?

Torsten



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Shale and facelets vs. Shale and Clay

2006-10-18 Thread hermod.opstvedt
Hi
 
Well nothing comes for free. However, this will change when the worlds turn 
jdk1.5 in full. Then annotations will take over for much of what we today see 
in xml files. I might be biased here, but I do not think that Clay is more 
complex with regards to configuration than say Spring which everybody is 
hailing. 
 
Hermod

-Original Message-
From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 2:10 PM
To: user@shale.apache.org
Subject: Re: Shale and facelets vs. Shale and Clay


My short tour of Clay documentation looks as if Clay is more heavy when it 
comes to declarations. It looks to me as if Facelets has much more default 
behavior built in, and that Clay requires you to write more XML to declare more 
about what you want to do (please correct me if I am wrong).

Randahl

[EMAIL PROTECTED] wrote: 

Hi



As far as I am concerned, Clay can do whatever Facelets can do and then some.



Hermod



-Original Message-

From: Randahl Fink Isaksen [ mailto:[EMAIL PROTECTED]

Sent: Wednesday, October 18, 2006 1:48 PM

To:  user@shale.apache.org

Subject: Re: Shale and facelets vs. Shale and Clay





Has anyone seen a comparison chart on the net somewhere? I have been 

googling for some more information about what clay can and cannot do in 

comparison to what facelets can and cannot do.



I have been testing facelets for some time now, but I would like to find 

out if it is worth the effort to have a go at clay as well. I feel 

certain we will be using Shale, so the question is what support 

technology we will combine Shale with... Facelets or Clay.



Randahl





[EMAIL PROTECTED] wrote:

  

Hi



1. Yes, Shale does not depend on Clay in any way - Actually it is almost true 
the other way around too, bar some Shale utility function that is uses.

2. One of the greatest advantages is that Clay supports the OO paradigm with 
inheritance, where Facelets only supports composition.



You seem to have some misconception here. Shale is a framework on top of ANY 
JSF implementation, much like Struts is a framework on top of JSP/Servlets. 
Clay works just as well with MyFaces as it does with Sun's JSF reference 
implementation



I have tested and used both, and finally landed on Clay due to 2.



Hermod



-Original Message-

From: Randahl Fink Isaksen [ mailto:[EMAIL PROTECTED]

Sent: Wednesday, October 18, 2006 9:04 AM

To:  user@shale.apache.org

Subject: Shale and facelets vs. Shale and Clay





Has anyone got any impressions of the two different combinations shale + 

facelets and shale + clay? In particular I was wondering:



1. Is shale *completely* separated from clay so that using facelets 

instead of clay does not break anything?

2. Has clay got any advantages over facelets when used with shale 

because clay was built for shale whereas facelets is meant for any JSF 

platform?



Randahl







* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



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: Shale and facelets vs. Shale and Clay

2006-10-18 Thread hermod.opstvedt
Hi

As far as I am concerned, Clay can do whatever Facelets can do and then some.

Hermod

-Original Message-
From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 1:48 PM
To: user@shale.apache.org
Subject: Re: Shale and facelets vs. Shale and Clay


Has anyone seen a comparison chart on the net somewhere? I have been 
googling for some more information about what clay can and cannot do in 
comparison to what facelets can and cannot do.

I have been testing facelets for some time now, but I would like to find 
out if it is worth the effort to have a go at clay as well. I feel 
certain we will be using Shale, so the question is what support 
technology we will combine Shale with... Facelets or Clay.

Randahl


[EMAIL PROTECTED] wrote:
> Hi
>
> 1. Yes, Shale does not depend on Clay in any way - Actually it is almost true 
> the other way around too, bar some Shale utility function that is uses.
> 2. One of the greatest advantages is that Clay supports the OO paradigm with 
> inheritance, where Facelets only supports composition.
>
> You seem to have some misconception here. Shale is a framework on top of ANY 
> JSF implementation, much like Struts is a framework on top of JSP/Servlets. 
> Clay works just as well with MyFaces as it does with Sun's JSF reference 
> implementation
>
> I have tested and used both, and finally landed on Clay due to 2.
>
> Hermod
>
> -Original Message-
> From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 18, 2006 9:04 AM
> To: user@shale.apache.org
> Subject: Shale and facelets vs. Shale and Clay
>
>
> Has anyone got any impressions of the two different combinations shale + 
> facelets and shale + clay? In particular I was wondering:
>
> 1. Is shale *completely* separated from clay so that using facelets 
> instead of clay does not break anything?
> 2. Has clay got any advantages over facelets when used with shale 
> because clay was built for shale whereas facelets is meant for any JSF 
> platform?
>
> Randahl
>
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
> 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: Clay HTML View - where to set @managed-bean-name?

2006-10-18 Thread hermod.opstvedt
Hi

If you want a sample to look at, you can download this and have a look: 
http://www.opstvedt.com/div/ClayMal.zip

Hermod

-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 11:50 AM
To: user@shale.apache.org
Subject: Re: Clay HTML View - where to set @managed-bean-name?


Solved it using:







and set the surrounding form to be jsfid="loginForm"

Is this behaviour ok - or should this usecase be solved in another way,
maybe better?

Does allowBody only manage if the content of the tag is rendered or not
- i guess, but i am not sure.

Torsten

Am Mittwoch, den 18.10.2006, 11:29 +0200 schrieb Torsten Krah:
> I want to use the html Views and made some components referring to
> [EMAIL PROTECTED]
> 
> How do i set this in a html view?
> 
> In a jsp i would use:
> 
>  managedBeanName="loginBean"/>
> 
> But now i got pure html with some implicit mappings and explicit ones
> like:
> 
> 
> 
> The rest is declared at the component.
> 
> Where to set the bean which should be used for that inputField?
> 
> kind regards
> 



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Clay HTML View - where to set @managed-bean-name?

2006-10-18 Thread hermod.opstvedt
Hi

allowbody refers to whether or not the content between your start and end tag 
is rendered or not

ie:
mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 11:50 AM
To: user@shale.apache.org
Subject: Re: Clay HTML View - where to set @managed-bean-name?


Solved it using:







and set the surrounding form to be jsfid="loginForm"

Is this behaviour ok - or should this usecase be solved in another way,
maybe better?

Does allowBody only manage if the content of the tag is rendered or not
- i guess, but i am not sure.

Torsten

Am Mittwoch, den 18.10.2006, 11:29 +0200 schrieb Torsten Krah:
> I want to use the html Views and made some components referring to
> [EMAIL PROTECTED]
> 
> How do i set this in a html view?
> 
> In a jsp i would use:
> 
>  managedBeanName="loginBean"/>
> 
> But now i got pure html with some implicit mappings and explicit ones
> like:
> 
> 
> 
> The rest is declared at the component.
> 
> Where to set the bean which should be used for that inputField?
> 
> kind regards
> 



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Clay HTML View - where to set @managed-bean-name?

2006-10-18 Thread hermod.opstvedt
Hi

You could either declare it in the component for myInputComponent or use 
something like

mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 11:30 AM
To: user@shale.apache.org
Subject: Clay HTML View - where to set @managed-bean-name?


I want to use the html Views and made some components referring to
[EMAIL PROTECTED]

How do i set this in a html view?

In a jsp i would use:



But now i got pure html with some implicit mappings and explicit ones
like:



The rest is declared at the component.

Where to set the bean which should be used for that inputField?

kind regards



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Shale and facelets vs. Shale and Clay

2006-10-18 Thread hermod.opstvedt
Hi

1. Yes, Shale does not depend on Clay in any way - Actually it is almost true 
the other way around too, bar some Shale utility function that is uses.
2. One of the greatest advantages is that Clay supports the OO paradigm with 
inheritance, where Facelets only supports composition.

You seem to have some misconception here. Shale is a framework on top of ANY 
JSF implementation, much like Struts is a framework on top of JSP/Servlets. 
Clay works just as well with MyFaces as it does with Sun's JSF reference 
implementation

I have tested and used both, and finally landed on Clay due to 2.

Hermod

-Original Message-
From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 9:04 AM
To: user@shale.apache.org
Subject: Shale and facelets vs. Shale and Clay


Has anyone got any impressions of the two different combinations shale + 
facelets and shale + clay? In particular I was wondering:

1. Is shale *completely* separated from clay so that using facelets 
instead of clay does not break anything?
2. Has clay got any advantages over facelets when used with shale 
because clay was built for shale whereas facelets is meant for any JSF 
platform?

Randahl



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Clay: outputLink - href unused, gets cleared.

2006-10-17 Thread hermod.opstvedt
Hi

As far as I'm concerned, you already have :)

Just to make sure that you do not have any errors in your setup/configuration, 
please try a couple of the other tags to see if they exihibit the same 
behaviour.

Hermod

-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 17, 2006 2:31 PM
To: user@shale.apache.org
Subject: RE: Clay: outputLink - href unused, gets cleared.


This is ( whats written on the page referring to clay):

The subtree can be formed using a Tapestry like HTML layout. The benefit
of using HTML layout composition is that it allows you to use standard
HTML tools. It also promotes more rapped development as an HTML
prototype can evolve into a dynamic web page. The HTML elements are
bound to corresponding JSF components using a jsfid attribute. This
attribute binds the HTML mock-up with a component declared in the Clay
view configuration files. Some HTML elements, the such as the FORM
element, have an implied mapping to a JSF component. 
The eleven implicitly mapped elements include: 
 1. 
 2. 
 3. 
 4. 
 5. 
 6. 
 7. 
 8. 
 9. 
10. 
11. 

I think this hasn't be change - so maybe this is a bug, how can i
confirm if it is one?

kind regards



Am Dienstag, den 17.10.2006, 13:56 +0200 schrieb
[EMAIL PROTECTED]:
> Hi
> 
> That was why i suggested the clay remove directive.
> 
> As far as I am concerned, when you get a html markup page from you designer, 
> you will need to go through it and add the clay remove stuff around blocks 
> that you will be replacing with Clay components (ie. span) for instance 
> replacing a html table block with your dynamic data supplied Clay component.
> 
> I don't remeber off hand if the anchor tag is one of the implicitly mapped 
> elements, if it is then you may have hit a bug.
> 
> Hermod
> 
> -Original Message-
> From: Torsten Krah [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 17, 2006 1:49 PM
> To: user@shale.apache.org
> Subject: RE: Clay: outputLink - href unused, gets cleared.
> 
> 
> The span way works - but according to the docs,  is one of the
> implicitly mapped elements, so i thought it should work too, shouldn't
> it?
> Why should a html designer use a span tag when he wants a link - a is
> the desired tag to use here, shouldn't it be mapped?
> 
> kind regards
> 
> Am Dienstag, den 17.10.2006, 13:38 +0200 schrieb
> [EMAIL PROTECTED]:
> > http://shale.apache.org";
> > target="_self" alt="Shale web site">Shale
> 
> 
> 
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> 
> 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: Clay: outputLink - href unused, gets cleared.

2006-10-17 Thread hermod.opstvedt
Hi

That was why i suggested the clay remove directive.

As far as I am concerned, when you get a html markup page from you designer, 
you will need to go through it and add the clay remove stuff around blocks that 
you will be replacing with Clay components (ie. span) for instance replacing a 
html table block with your dynamic data supplied Clay component.

I don't remeber off hand if the anchor tag is one of the implicitly mapped 
elements, if it is then you may have hit a bug.

Hermod

-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 17, 2006 1:49 PM
To: user@shale.apache.org
Subject: RE: Clay: outputLink - href unused, gets cleared.


The span way works - but according to the docs,  is one of the
implicitly mapped elements, so i thought it should work too, shouldn't
it?
Why should a html designer use a span tag when he wants a link - a is
the desired tag to use here, shouldn't it be mapped?

kind regards

Am Dienstag, den 17.10.2006, 13:38 +0200 schrieb
[EMAIL PROTECTED]:
> http://shale.apache.org";
> target="_self" alt="Shale web site">Shale



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Clay: outputLink - href unused, gets cleared.

2006-10-17 Thread hermod.opstvedt
Hi

If you want this to be output as you want it, then you need yo surround it with 
the Clay exclude:


http://shale.apache.org";>Shale


Another alternativ is to use a Clay-Faces component :

http://shale.apache.org"; target="_self" 
alt="Shale web site">Shale

or (for I18N)
http://shale.apache.org"; target="_self" 
alt="Shale web site">



Hermod


-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 17, 2006 1:16 PM
To: user@shale.apache.org
Subject: Clay: outputLink - href unused, gets cleared.


I am trying to get clay working, but got some issues:

http://shale.apache.org";>Shale

Does result in:

Shalehttp://shale.apache.org";>Shale

works.

Where is my failure?

kind regards



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



Clay and Tobago

2006-10-17 Thread hermod.opstvedt
> Hi
> 
> Has anybody made any attempt at creating a Clay definition file for the 
> Tobago components?
> 
> Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Clay Page outdated - any new versions out?

2006-10-16 Thread hermod.opstvedt
Hi

My recommendation is to get the samples from svn: 
https://svn.apache.org/repos/asf/shale/framework/trunk/shale-apps

Then build them with Maven2 and grab the war files from you local repo and 
install the in tomcat or similar. Then you have working samples that you can 
play around with.

Hermod

-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Monday, October 16, 2006 1:57 PM
To: user@shale.apache.org
Subject: RE: Clay Page outdated - any new versions out?


Where to get them - or do you mean the clay-usecases one?

kind regards

Am Montag, den 16.10.2006, 13:45 +0200 schrieb
[EMAIL PROTECTED]:
> Hi
> 
> Best bet is to look at the samples :)
> 
> Hermod
> 
> -Original Message-
> From: Torsten Krah [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 16, 2006 1:39 PM
> To: user@shale.apache.org
> Subject: Clay Page outdated - any new versions out?
> 
> 
> I am trying to get into clay - but its really hard because
> http://shale.apache.org/features-reusable-views.html
> 
> is imho outdated.
> 
> For example:  <%@ taglib prefix="s"
> uri="http://struts.apache.org/shale/core"; %> changed to: <%@ taglib
> prefix="s" uri="http://shale.apache.org/core"%>
> 
> trying to get clay-plugin working does also not work like written there
> - so its really a hard job reading the docs and being unsuccesfull
> because things changed.
> 
> Can anyone provide some updated infos there? I know i can use the clay
> usecase example, but its very "big" to learn from.
> 
> kind regards
> 
> 
> 
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> 
> 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: Clay Page outdated - any new versions out?

2006-10-16 Thread hermod.opstvedt
Hi

Best bet is to look at the samples :)

Hermod

-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Monday, October 16, 2006 1:39 PM
To: user@shale.apache.org
Subject: Clay Page outdated - any new versions out?


I am trying to get into clay - but its really hard because
http://shale.apache.org/features-reusable-views.html

is imho outdated.

For example:  <%@ taglib prefix="s"
uri="http://struts.apache.org/shale/core"; %> changed to: <%@ taglib
prefix="s" uri="http://shale.apache.org/core"%>

trying to get clay-plugin working does also not work like written there
- so its really a hard job reading the docs and being unsuccesfull
because things changed.

Can anyone provide some updated infos there? I know i can use the clay
usecase example, but its very "big" to learn from.

kind regards



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Please Welcome Rahul Akolkar As A Shale Committer

2006-10-12 Thread hermod.opstvedt
Congrats Rahul :)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig
McClanahan
Sent: Thursday, October 12, 2006 6:01 PM
To: Shale Developers List; Shale User Mailing List
Subject: Please Welcome Rahul Akolkar As A Shale Committer


Please extend a welcome to Rahul Akolkar as a committer to Shale.  Rahul has
been working tirelessly on the new Dialog2 code in the sandbox, as well as
the Commons SCXML technology that is used by one of the Dialog2
implementations.  He has consistently shown he "gets it" on how Apache
projects work, and we welcome his participation across the rest of the Shale
codebase as well.

Welcome Rahul!

Craig


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Error in sandbox shale-clay-mailreader pom

2006-10-04 Thread hermod.opstvedt
Hi

Likewise with the struts-mailreader-dao.jar. Update it to 1.3.5, and it can be 
downloaded from ibiblio.

Hemrod

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 04, 2006 11:03 AM
To: user@shale.apache.org
Subject: Error in sandbox shale-clay-mailreader pom


Hi

I tried to build the Shale-Clay mailreader app with Maven, but the pom refers 
to non-existant dependencies.

I searched around and came upon the following Wiki entry on MyFaces:

http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1.1.3

So the myfaces (1.1.3)  stuff has a different groupid and can be downloaded 
from the above described repository. 

Gary: Feel like updating this one?

Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



Error in sandbox shale-clay-mailreader pom

2006-10-04 Thread hermod.opstvedt
Hi

I tried to build the Shale-Clay mailreader app with Maven, but the pom refers 
to non-existant dependencies.

I searched around and came upon the following Wiki entry on MyFaces:

http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1.1.3

So the myfaces (1.1.3)  stuff has a different groupid and can be downloaded 
from the above described repository. 

Gary: Feel like updating this one?

Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: How to reference a static value in JSF

2006-09-25 Thread hermod.opstvedt
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.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



Shale and Toplink

2006-09-22 Thread hermod.opstvedt
Hi

I was planning on importing the shal-clay-jpa project into Eclipse through mvn 
eclipse:eclipse. However it stops on an unresolved dependency: 
toplink:toplink-essentials:jar:2.7.
In what repository is this jar file? I found version 1.0 of 
toplink-essentials-agent at dev.jav but not the mentioned file.

Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



Dependecies in sandbox

2006-09-20 Thread hermod.opstvedt
Hi

Tried to build the sanbox components from trunk, but I get an error indicating 
that there might be som dependency missing. Either that or is there a 
particular profile I should use?

Compiling 5 source files to E:\Apache\Shale\sandbox\shale-test-dialog2-legacy\ta
rget\classes
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] Compilation failure

E:\Apache\Shale\sandbox\shale-test-dialog2-legacy\src\main\java\org\apache\shale
\examples\test\dialog2\legacy\PopupData.java:[24,25] package javax.faces.model d
oes not exist

E:\Apache\Shale\sandbox\shale-test-dialog2-legacy\src\main\java\org\apache\shale
\examples\test\dialog2\legacy\PopupData.java:[84,12] cannot find symbol
symbol  : class SelectItem
location: class org.apache.shale.examples.test.dialog2.legacy.PopupData


Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



Shale dialogs

2006-08-21 Thread hermod.opstvedt
Hi

There was a hint on the list a little back that a solution for the Dialogs 
problems was near - Any progress on this

http://issues.apache.org/struts/browse/SHALE-175
http://issues.apache.org/struts/browse/SHALE-48

I had hoped that these would be solved prior to 1.3 release.

Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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: Internationalisation: Embedded HTML markup in Message Bundles?

2006-07-14 Thread hermod.opstvedt
Hi

There is no problem in having html markup in the properties file. All you need 
to do is to use the escape property when writing it out to indicate to the 
renderer that it should leave the markup as is.

Hermod

-Original Message-
From: Ian.Priest [mailto:[EMAIL PROTECTED]
Sent: Friday, July 14, 2006 12:11 PM
To: user@shale.apache.org
Subject: Internationalisation: Embedded HTML markup in Message Bundles?


The site I'm working on has quite a lot of largish static pages
containing help info, user guides etc. There's quite a lot of mark-up in
the pages, for example:
 
help section  1
some useful info
some more useful info
 
I need to make the content multi-language, and can think of a couple of
ways to go about it.
 
1. The obvious: use a message bundle. The problem I can see with this is
that (afaik) it's not possible to put html markup into a message bundle
and have it rendered on the page. It's generally treated as part of the
text and displayed by the browser instead of being used to format the
text. Hence even the tiny snippet above would require three entries in
the message bundle. With the pages I'm looking at the grand total of
entries in the message bundle would be into 4 figures!
 
2. Use the current locale to load files from a dynamic url, (I use
clayImport to pull them into my layout), so I'd have
/static_content/en/, /static_content/fr/, and then have an English,
French etc. copy of each html page.
 
Personally I lean towards the second solution, but was curious whether
there is some clever Clay-way of getting markup from a message bundle to
actually be used as markup by the browser?
 
Cheers,
Ian.
 
 


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *