ActionMessages not displaying

2006-12-19 Thread Kranti

I am trying to get the action messages from action class as follows but not
getting the message but record is inserted properly

*in action class*

if(isInserted==true){
ActionMessages addTaskMessages = new ActionMessages();
addTaskMessages.add(addtasksuccess, new ActionMessage(
message.addtask.sucess));
saveMessages(httpservletrequest, addTaskMessages);
}

*in jsp*

logic:messagesPresent message=true property=addTaskMessages
html:messages property=addTaskMessages message=true
id=addtasksuccess
  bean:write name=addtasksuccess/br/
 /html:messages
/logic:messagesPresent


bean method don't make function in Struts2

2006-12-19 Thread red phoenix

I use struts2 s:bean,like follows:

---SimpleCounter---
package test;
public class SimpleCounter{
String foo;

public void setFoo(String foo){
 System.out.println(set foo=+foo);
 this.foo=foo;
}
public String getFoo(){
 System.out.println(get foo=+foo);
 return foo;
}
}

---test.jsp---
%@ taglib uri=/struts-tags prefix=s %
s:bean name=test.SimpleCounter id=counter
  s:param name=foo value=BAR /
  The value of foot is : s:property value=foo/, when inside the bean
tag br /
/s:bean

When I run it,tomcat shows:
set foo=null
get foo=null

IE shows:
The value of foot is : , when inside the bean tag

I think s:param name=foo value=BAR / should call setFoo(BAR) and
should print set foo=BAR,I don't know why print set foo=null. Anyone can
tell me the reason of error.

Thanks


RE: where to download struts2.0 examples files?

2006-12-19 Thread Sakari.Isoniemi


Weren't they in Struts2 distribution ...\apps  ?

/S

-Original Message-
From: red phoenix [mailto:[EMAIL PROTECTED] 
Sent: 19. joulukuuta 2006 9:49
To: Struts Users Mailing List
Subject: where to download struts2.0 examples files?

In struts doc,I often see org.apache.struts2.example.*,I want to know
where I can download the example fiels?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: bean:write in struts2

2006-12-19 Thread Antonio Petrelli

red phoenix ha scritto:

I want to change my code from struts1 to struts2,I use displaytag and
bean:write to show following code,it can run well,bean:write
name=element property=ID/ will show 1,2,


I think it is better wo use JSTL c:out tag:
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/out.html

Ciao
Antonio


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ActionMessages not displaying

2006-12-19 Thread Niall Pemberton

Try changing to use the name attribute instead of property on the
messagesPresent and messages tags:

logic:messagesPresent message=true name=addTaskMessages
   html:messages name=addTaskMessages message=true
   id=addtasksuccess
   bean:write name=addtasksuccess/br/
   /html:messages
/logic:messagesPresent

Niall

On 12/19/06, Kranti [EMAIL PROTECTED] wrote:

I am trying to get the action messages from action class as follows but not
getting the message but record is inserted properly

*in action class*

if(isInserted==true){
ActionMessages addTaskMessages = new ActionMessages();
addTaskMessages.add(addtasksuccess, new ActionMessage(
message.addtask.sucess));
saveMessages(httpservletrequest, addTaskMessages);
}

*in jsp*

logic:messagesPresent message=true property=addTaskMessages
 html:messages property=addTaskMessages message=true
id=addtasksuccess
   bean:write name=addtasksuccess/br/
  /html:messages
/logic:messagesPresent




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: where to download struts2.0 examples files?

2006-12-19 Thread red phoenix

Struts2 distributes apps only struts2-blank-2.0.1,struts2-mailreader-2.0.1,
struts2-portlet-2.0.1 and struts2-showcase-2.0.1,I can't find
org.apache.struts2.example.* files!

On 12/19/06, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:




Weren't they in Struts2 distribution ...\apps  ?

/S

-Original Message-
From: red phoenix [mailto:[EMAIL PROTECTED]
Sent: 19. joulukuuta 2006 9:49
To: Struts Users Mailing List
Subject: where to download struts2.0 examples files?

In struts doc,I often see org.apache.struts2.example.*,I want to know
where I can download the example fiels?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: ActionMessages not displaying

2006-12-19 Thread Kranti

Hey niall,

its working!

Thanks


On 12/19/06, Niall Pemberton [EMAIL PROTECTED] wrote:


Try changing to use the name attribute instead of property on the
messagesPresent and messages tags:

logic:messagesPresent message=true name=addTaskMessages
   html:messages name=addTaskMessages message=true
   id=addtasksuccess
   bean:write name=addtasksuccess/br/
   /html:messages
/logic:messagesPresent

Niall

On 12/19/06, Kranti [EMAIL PROTECTED] wrote:
 I am trying to get the action messages from action class as follows but
not
 getting the message but record is inserted properly

 *in action class*

 if(isInserted==true){
 ActionMessages addTaskMessages = new ActionMessages();
 addTaskMessages.add(addtasksuccess, new ActionMessage(
 message.addtask.sucess));
 saveMessages(httpservletrequest, addTaskMessages);
 }

 *in jsp*

 logic:messagesPresent message=true property=addTaskMessages
  html:messages property=addTaskMessages message=true
 id=addtasksuccess
bean:write name=addtasksuccess/br/
   /html:messages
 /logic:messagesPresent



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Chains - 1.3.5

2006-12-19 Thread Joseph McGranaghan


This should be simple, but for the life of me I can't get find the answer.

All I want to do is have a chain execute and then go to an action forward

Right now it goes through the chain and outputs a blank web page with no 
source code at all.




struts-config:

action path=/preprocess_myaction scope=request catalog=mycatalog 
command=mychain


   forward name=myaction path=/myaction.do /

/action

action path=/myaction forward=tile.myaction /



chain-config:

?xml version=1.0 ?

catalog name=mycatalog
  
  chain name=mychain
 
command id=GetSomethingAndPutInRequest 
className=com.draegoonZ.GetSomethingAndPutInRequest /


  /chain

/catalog

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Chains - 1.3.5

2006-12-19 Thread Joseph McGranaghan



Solved my problem:

ActionContext ac = (ActionContext)context;
ac.setForwardConfig(new ActionForward(/myaction.do));

If anyone has a cleaner, non-hardcoded my, I'm all ears!

Thanks,

Joe





Joseph McGranaghan wrote:


This should be simple, but for the life of me I can't get find the 
answer.


All I want to do is have a chain execute and then go to an action 
forward


Right now it goes through the chain and outputs a blank web page with 
no source code at all.




struts-config:

action path=/preprocess_myaction scope=request 
catalog=mycatalog command=mychain


   forward name=myaction path=/myaction.do /

/action

action path=/myaction forward=tile.myaction /



chain-config:

?xml version=1.0 ?

catalog name=mycatalog
chain name=mychain
 command id=GetSomethingAndPutInRequest 
className=com.draegoonZ.GetSomethingAndPutInRequest /


  /chain

/catalog

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: where to download 1.3.6 - broken link ?

2006-12-19 Thread Lixin Chu

thanks for your clarification !

On 12/19/06, Wendy Smoak [EMAIL PROTECTED] wrote:


On 12/18/06, Lixin Chu [EMAIL PROTECTED] wrote:

 the linked provided on WiKi seems broken:
   http://people.apache.org/builds/struts/1.3.6
http://people.apache.org/builds/struts/1.3.6

 are we going to have a new release soon ?

I changed the wiki to say will be available here since 1.3.6 doesn't
yet exist.

The 1.3.5 release is available from the downloads page:
http://struts.apache.org/download.cgi#struts135

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Recovery of data whith MySql

2006-12-19 Thread Nabil ALI-MOUSSA

Hi all,

I make a request in my dB MySql with a variable date :

PersistenceManager pm=JDOFactory.getInstance().getPM();
   pm.currentTransaction().begin();
   Collection c = (Collection) 
pm.newQuery(SuiviTraitement.class, 
'date'=='+date+').execute();   //(-mm-dd)

   pm.retrieveAll(c);
   pm.makeTransientAll(c);
   setListeTraitements(new ArrayList(c));   
   pm.currentTransaction().commit();


The recovery of data is made to a form JSp, I recover well the data 
seized in the variable date, (under the same format that in my data base)
but I do not find anything, it does not have there correspondence 
somebody has an idea of problem ??


Thanks in Advance,

Regards,




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Chains - 1.3.5

2006-12-19 Thread Niall Pemberton

On 12/19/06, Joseph McGranaghan [EMAIL PROTECTED] wrote:


Solved my problem:

ActionContext ac = (ActionContext)context;
ac.setForwardConfig(new ActionForward(/myaction.do));

If anyone has a cleaner, non-hardcoded my, I'm all ears!


Can you not just do this as one action mapping and specify the forward
on the action?

 action path=/myaction scope=request
  catalog=mycatalog command=mychain forward=tile.myaction
 /action

Niall


Thanks,

Joe

Joseph McGranaghan wrote:

 This should be simple, but for the life of me I can't get find the
 answer.

 All I want to do is have a chain execute and then go to an action
 forward

 Right now it goes through the chain and outputs a blank web page with
 no source code at all.



 struts-config:

 action path=/preprocess_myaction scope=request
 catalog=mycatalog command=mychain

forward name=myaction path=/myaction.do /

 /action

 action path=/myaction forward=tile.myaction /



 chain-config:

 ?xml version=1.0 ?

 catalog name=mycatalog
 chain name=mychain
  command id=GetSomethingAndPutInRequest
 className=com.draegoonZ.GetSomethingAndPutInRequest /

   /chain

 /catalog


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: if in Struts2

2006-12-19 Thread Dave Newton
From: red phoenix [mailto:[EMAIL PROTECTED]
 %
  request.setAttribute(tt,new String(1));
 %
 body
 s:if test=Session.tt?exists

Request and session are different?

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[s2]Portlet support

2006-12-19 Thread Asthana, Rahul
Hi,
I dont know anything about portlets,but our project may have to migrate to it 
in future..This line is from the Struts 2  features.What does it mean?
Easy portlets - Automatic portlet support allows portal and servlet 
deployments with no code changes.
thanks
Rahul




Struts2 Validation troubles

2006-12-19 Thread Holl Gerald
Hello,

I tried a little example on validation with struts2.
Here is the Login.jsp:
%@ taglib prefix=s uri=/struts-tags %
html
head
titleLogin/title
/head
body
h2Login/h2
s:form id=login action=Login
ps:textfield label=%{getText('username')}
name=username required=true//p
ps:password label=%{getText('password')}
name=password maxlength=255 required=true//p
ps:submit value=Login//p
/s:form
/body
/html

And the Login.java action class:
public class Login extends ActionSupport {
@Override
public String execute() throws Exception {
System.out.println(execute());
return SUCCESS;
}
}

The Login--validation.xml looks like this:
validators
  field name=username
  field-validator type=requiredstring
  message key=requiredstring/
  /field-validator
  /field
  field name=password
  field-validator type=requiredstring
  message key=requiredstring/
  /field-validator
  /field
/validators


And last the struts.xml:
struts
!-- Include framework defaults (from Struts 2 JAR). --
include file=struts-default.xml /
!-- Configuration for the default package. --
package name=mypackage extends=struts-default
action name=Login class=misc.Login
result name=input/Login.jsp/result
result name=success/Main.jsp/result
/action
/package
/struts


The problem is that I always get back on the Login page although I
entered correct credentials ...
It seems that the result=success never occurs.

Any ideas what's wrong there?


Thanks,
Gerald

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Chains - 1.3.5

2006-12-19 Thread Joseph McGranaghan

Yes, that works perfectly!

A whole lot cleaner too.

Now people will find this in the archives.

Thanks,

Joe



Niall Pemberton wrote:

On 12/19/06, Joseph McGranaghan [EMAIL PROTECTED] wrote:


Solved my problem:

ActionContext ac = (ActionContext)context;
ac.setForwardConfig(new ActionForward(/myaction.do));

If anyone has a cleaner, non-hardcoded my, I'm all ears!


Can you not just do this as one action mapping and specify the forward
on the action?

 action path=/myaction scope=request
  catalog=mycatalog command=mychain forward=tile.myaction
 /action

Niall


Thanks,

Joe

Joseph McGranaghan wrote:

 This should be simple, but for the life of me I can't get find the
 answer.

 All I want to do is have a chain execute and then go to an action
 forward

 Right now it goes through the chain and outputs a blank web page with
 no source code at all.



 struts-config:

 action path=/preprocess_myaction scope=request
 catalog=mycatalog command=mychain

forward name=myaction path=/myaction.do /

 /action

 action path=/myaction forward=tile.myaction /



 chain-config:

 ?xml version=1.0 ?

 catalog name=mycatalog
 chain name=mychain
  command id=GetSomethingAndPutInRequest
 className=com.draegoonZ.GetSomethingAndPutInRequest /

   /chain

 /catalog


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts 2 with jsf as plugin

2006-12-19 Thread robin bajaj

hi All,
I heard that Struts2 can use JSF components selectively on per-page 
basis. Does this mean, I can use any JSF distribution including ICESoft, 
MyFaces, Sun's JSF RI etc. or does it have any limits as per the JSF 
distro is concerned.


And can we mix match using a couple of distros, ie. using a MyFaces 
component for one page and ICESoft component for another.


And is there anyway possible we could plugin JSF components in STruts 
1.3.x ?? (or is it still just wishful thinking.. for a Struts 2.x novice 
like me :-(


Thanks for your replies in advances,
regards,
robin.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts 2 with jsf as plugin

2006-12-19 Thread Don Brown

The Struts 2 JSF plugin doesn't depend on any specific JSF
implementation, so you should be able to use the one of your choice.
As for whether multiple implementions can live together, if it is
usually possible in the JSF world, then it should be possible here.

As for JSF support in Struts 1.3.x, there is the Struts-Faces
subproject that might be of use, however, I don't know its current
quality.

Don

On 12/19/06, robin bajaj [EMAIL PROTECTED] wrote:

hi All,
I heard that Struts2 can use JSF components selectively on per-page
basis. Does this mean, I can use any JSF distribution including ICESoft,
MyFaces, Sun's JSF RI etc. or does it have any limits as per the JSF
distro is concerned.

And can we mix match using a couple of distros, ie. using a MyFaces
component for one page and ICESoft component for another.

And is there anyway possible we could plugin JSF components in STruts
1.3.x ?? (or is it still just wishful thinking.. for a Struts 2.x novice
like me :-(

Thanks for your replies in advances,
regards,
robin.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts row rags

2006-12-19 Thread Meenakshi j
Hello,
  I am new to struts and would like to change the code below
  logic:iterate indexId=idx id=director name=ProposalSummaryForm 
property=directors
  % if ( ((idx.intValue())%2) == 0 ) { %
tr class=evenrow
  % } else { %
tr class=oddrow
  % } %
  /logic:iterate
   to style class row tags. I am not sure how to do this. Any help 
would be appreciated.
  Thanks,

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: struts row rags

2006-12-19 Thread Laurie Harper

Meenakshi j wrote:

Hello,
  I am new to struts and would like to change the code below
  logic:iterate indexId=idx id=director name=ProposalSummaryForm 
property=directors

  % if ( ((idx.intValue())%2) == 0 ) { %
tr class=evenrow
  % } else { %
tr class=oddrow
  % } %
  /logic:iterate
   to style class row tags. I am not sure how to do this. Any help 
would be appreciated.


You'd like to change the code how? Does what you have here not work? Or 
do you mean you want to get rid of the run-time expressions? If the 
latter, you may want to consider using JSTL. Something roughly like this 
may do the trick:


c:forEach var=director varStatus=status
items=ProposalSummaryForm.directors/
  tr class=${status.index % 2 == 0 ? 'evenrow' : 'oddrow'}

  /tr
/c:forEach

L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: initialize a DynaValidatorForm property

2006-12-19 Thread Laurie Harper

Pille wrote:

And in the action mapping specify the name of the Form Bean that you are
about to use. In this case the form bean that contains the List you'r going
to initiate..


i tried all of this. when i spcified the name of DynaValidatorForm in
the prepare-mapping i got an exception. but it worked with
DynActionForm. why?

but i solved it right now. i just implemented my own Form class as
extension of ValidatorForm.


Good to know you found a solution, but creating a class shouldn't be 
necessary; without seeing the exception you got, and how you configured 
your form bean and action mapping to get it, it's hard to say what went 
wrong. If you'd like to solve that, post the relevant configuration and 
the full stack trace for us to take a look at.


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: bean:write in struts2

2006-12-19 Thread Laurie Harper

red phoenix wrote:

I want to change my code from struts1 to struts2,I use displaytag and
bean:write to show following code,it can run well,bean:write
name=element property=ID/ will show 1,2,
%@ taglib uri=/struts-tags prefix=s %
display:table name=testList export=false sort=external
defaultsort=1 pagesize=2 id=element size=rsize
requestURI=/test.do
display:column title=choice
input type=checkbox id=c1 name=id1 value=bean:write name=element
property=ID/
/display:column

I know struts2 will use s:checkbox and use ww:property value=id / to
replace bean:write name=element property=ID/,so I modify code like
follows:
%@ taglib uri=/struts-tags prefix=s %
display:table name=testList export=false sort=external
defaultsort=1 pagesize=2 id=element size=rsize
requestURI=/test.do
display:column title=choice
s:checkbox name=id fieldValue=ww:property value=id //
/display:column


Two problems here: First, 'ww:property' should be 's:property', as 
specified by your taglib declaration. Second, you can't use a JSP custom 
tag as an attribute value within another custom tag; JSP tags don't nest 
like this, it's illegal syntax.


Try something like

  s:set id=idField value=%{id}/
  s:checkbox name=id fieldValue=%{idField}/

That might not be quite right, but the point is you need to seperate the 
two tag invocations.



But when I run it,I find ww:property value=id / don't make any
function,checkbox's value is still ww:property value=id / and not the
real value 1,2,3
I am puzzled with struts2,because there is not a learning book about
struts2,the struts2 document is very brief,not detail!
Anybody could give me a detail method to resovle my above question?


There's no book specifically on Struts2 yet, but since Struts2 is based 
on Webwork, the Webwork In Action book is a good reference.


I'm not sure which 'struts2 document' you're referring to, but there's a 
great deal of documentation, tutorials, guides, sample application and 
reference documentation on the Struts2 website and wiki.


HTH,

L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: bean method don't make function in Struts2

2006-12-19 Thread Laurie Harper

red phoenix wrote:

I use struts2 s:bean,like follows:

---SimpleCounter---
package test;
public class SimpleCounter{
String foo;

public void setFoo(String foo){
 System.out.println(set foo=+foo);
 this.foo=foo;
}
public String getFoo(){
 System.out.println(get foo=+foo);
 return foo;
}
}

---test.jsp---
%@ taglib uri=/struts-tags prefix=s %
s:bean name=test.SimpleCounter id=counter
  s:param name=foo value=BAR /
  The value of foot is : s:property value=foo/, when inside the bean
tag br /
/s:bean

When I run it,tomcat shows:
set foo=null
get foo=null

IE shows:
The value of foot is : , when inside the bean tag

I think s:param name=foo value=BAR / should call setFoo(BAR) and
should print set foo=BAR,I don't know why print set foo=null. Anyone can
tell me the reason of error.



I could be wrong, but I suspect s:param's 'value' attribute is evaluated 
as an expression, so you'd need to write


  s:param name=foo value=%{'BAR'}/

or, more simply,

  s:param name=foo value='BAR'/

See the Tag Syntax document [1] for more details.

L.

[1] http://struts.apache.org/WW/tag-syntax.html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts row rags

2006-12-19 Thread Meenakshi j
Hi
  Thanks for your help.
  I want to get rid of
  % if ( ((idx.intValue())%2) == 0 ) { %
 tr class=evenrow
   % } else { %
 tr class=oddrow
   % } %
  and replace it with 'evenStyleClass' and 'oddStyleClass'
  MJ

   
  Meenakshi j wrote:
 Hello,
   I am new to struts and would like to change the code below
   logic:iterate indexId=idx id=director 
name=ProposalSummaryForm 
 property=directors
   % if ( ((idx.intValue())%2) == 0 ) { %
 tr class=evenrow
   % } else { %
 tr class=oddrow
   % } %
   /logic:iterate
to style class row tags. I am not sure how to do this. Any help 
 would be appreciated.

You'd like to change the code how? Does what you have here not work? Or 
do you mean you want to get rid of the run-time expressions? If the 
latter, you may want to consider using JSTL. Something roughly like 
this 
may do the trick:

c:forEach var=director varStatus=status
 items=ProposalSummaryForm.directors/
   tr class=${status.index % 2 == 0 ? 'evenrow' : 'oddrow'}
 
   /tr
/c:forEach

L.



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Piero Sartini
Hello list,

the last days I've read a lot about web frameworks in java. And the more I 
read, the more questions I have. Just writing this down, maybe someone has 
some thoughts that can help me.

My problem is simple, or lets say it should be simple: What webframework is a 
good choice to start a new web application?

After all, JSF seams to be popular, it is supported by big vendors and it is a 
standard. My problem with JSF is that its way too basic in my eyes. It does 
not give me best practices, its just there and says: use me. But it does 
not give me an idea how it is used best. But maybe I missed that. My feeling 
is that its a core technology like jsp ... someone should build a framework 
with it ...

I am missing this framework around JSF that does speed up development. Is 
shale meant to be this framework? It matured a lot since I last looked at it. 
But for me, it looks like its not really accepted - maybe I am wrong. Is 
shale what I am searching for?

There is JBoss Seam. I don't want to use jboss AS and not sure if its the best 
choice..

I looked at struts2 and it feels like it could be what I searched for. There 
is good documentation, many examples, an maven archetype, lots of users and 
the possibility to use third party technologies like freemarker. But my 
problem is that I am not sure if its not better to use JSF to be compatible 
with future technologies. There are a lot of ajax-components for example, and 
we can wait that a lot of third party libraries and tools will be 
available...

Is there a simple answer?


Regards,
Piero

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Don Brown

It isn't an either/or question.  You can use JSF actions, components,
and configuration in a Struts 2 app, using the Struts 2 JSF Plugin.
If you prefer an action-centric design, but want to use JSF
components, then it is worth looking into.  If you want a pure JSF
approach, especially if you have your eye on the JSF tools, then
MyFaces or Shale would be worth looking at.

See also: http://cwiki.apache.org/WW/javaserver-faces.html

Don

On 12/19/06, Piero Sartini [EMAIL PROTECTED] wrote:

Hello list,

the last days I've read a lot about web frameworks in java. And the more I
read, the more questions I have. Just writing this down, maybe someone has
some thoughts that can help me.

My problem is simple, or lets say it should be simple: What webframework is a
good choice to start a new web application?

After all, JSF seams to be popular, it is supported by big vendors and it is a
standard. My problem with JSF is that its way too basic in my eyes. It does
not give me best practices, its just there and says: use me. But it does
not give me an idea how it is used best. But maybe I missed that. My feeling
is that its a core technology like jsp ... someone should build a framework
with it ...

I am missing this framework around JSF that does speed up development. Is
shale meant to be this framework? It matured a lot since I last looked at it.
But for me, it looks like its not really accepted - maybe I am wrong. Is
shale what I am searching for?

There is JBoss Seam. I don't want to use jboss AS and not sure if its the best
choice..

I looked at struts2 and it feels like it could be what I searched for. There
is good documentation, many examples, an maven archetype, lots of users and
the possibility to use third party technologies like freemarker. But my
problem is that I am not sure if its not better to use JSF to be compatible
with future technologies. There are a lot of ajax-components for example, and
we can wait that a lot of third party libraries and tools will be
available...

Is there a simple answer?


Regards,
Piero

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread robin bajaj

Hi there,

May I ask a corollary question in this context.

What is the current status of Shale, is it build on top of SUN's JSF Ref.
Implementation or MyFaces
or Can I just use any JSF distro with Shale.

Thanks for your replies in advance,
regards
robin

On 12/19/06, Don Brown [EMAIL PROTECTED] wrote:


It isn't an either/or question.  You can use JSF actions, components,
and configuration in a Struts 2 app, using the Struts 2 JSF Plugin.
If you prefer an action-centric design, but want to use JSF
components, then it is worth looking into.  If you want a pure JSF
approach, especially if you have your eye on the JSF tools, then
MyFaces or Shale would be worth looking at.

See also: http://cwiki.apache.org/WW/javaserver-faces.html

Don

On 12/19/06, Piero Sartini [EMAIL PROTECTED] wrote:
 Hello list,

 the last days I've read a lot about web frameworks in java. And the more
I
 read, the more questions I have. Just writing this down, maybe someone
has
 some thoughts that can help me.

 My problem is simple, or lets say it should be simple: What webframework
is a
 good choice to start a new web application?

 After all, JSF seams to be popular, it is supported by big vendors and
it is a
 standard. My problem with JSF is that its way too basic in my eyes. It
does
 not give me best practices, its just there and says: use me. But it
does
 not give me an idea how it is used best. But maybe I missed that. My
feeling
 is that its a core technology like jsp ... someone should build a
framework
 with it ...

 I am missing this framework around JSF that does speed up development.
Is
 shale meant to be this framework? It matured a lot since I last looked
at it.
 But for me, it looks like its not really accepted - maybe I am wrong. Is
 shale what I am searching for?

 There is JBoss Seam. I don't want to use jboss AS and not sure if its
the best
 choice..

 I looked at struts2 and it feels like it could be what I searched for.
There
 is good documentation, many examples, an maven archetype, lots of users
and
 the possibility to use third party technologies like freemarker. But my
 problem is that I am not sure if its not better to use JSF to be
compatible
 with future technologies. There are a lot of ajax-components for
example, and
 we can wait that a lot of third party libraries and tools will be
 available...

 Is there a simple answer?


 Regards,
 Piero

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Asthana, Rahul
The roadmap has info pertaining to this thread.
http://struts.apache.org/roadmap.html

-Original Message-
From: robin bajaj [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 19, 2006 6:04 PM
To: Struts Users Mailing List
Subject: Re: Struts2, Shale, Seam, pure JSF - what to use?


Hi there,

May I ask a corollary question in this context.

What is the current status of Shale, is it build on top of SUN's JSF Ref.
Implementation or MyFaces
or Can I just use any JSF distro with Shale.

Thanks for your replies in advance,
regards
robin

On 12/19/06, Don Brown [EMAIL PROTECTED] wrote:

 It isn't an either/or question.  You can use JSF actions, components,
 and configuration in a Struts 2 app, using the Struts 2 JSF Plugin.
 If you prefer an action-centric design, but want to use JSF
 components, then it is worth looking into.  If you want a pure JSF
 approach, especially if you have your eye on the JSF tools, then
 MyFaces or Shale would be worth looking at.

 See also: http://cwiki.apache.org/WW/javaserver-faces.html

 Don

 On 12/19/06, Piero Sartini [EMAIL PROTECTED] wrote:
  Hello list,
 
  the last days I've read a lot about web frameworks in java. And the more
 I
  read, the more questions I have. Just writing this down, maybe someone
 has
  some thoughts that can help me.
 
  My problem is simple, or lets say it should be simple: What webframework
 is a
  good choice to start a new web application?
 
  After all, JSF seams to be popular, it is supported by big vendors and
 it is a
  standard. My problem with JSF is that its way too basic in my eyes. It
 does
  not give me best practices, its just there and says: use me. But it
 does
  not give me an idea how it is used best. But maybe I missed that. My
 feeling
  is that its a core technology like jsp ... someone should build a
 framework
  with it ...
 
  I am missing this framework around JSF that does speed up development.
 Is
  shale meant to be this framework? It matured a lot since I last looked
 at it.
  But for me, it looks like its not really accepted - maybe I am wrong. Is
  shale what I am searching for?
 
  There is JBoss Seam. I don't want to use jboss AS and not sure if its
 the best
  choice..
 
  I looked at struts2 and it feels like it could be what I searched for.
 There
  is good documentation, many examples, an maven archetype, lots of users
 and
  the possibility to use third party technologies like freemarker. But my
  problem is that I am not sure if its not better to use JSF to be
 compatible
  with future technologies. There are a lot of ajax-components for
 example, and
  we can wait that a lot of third party libraries and tools will be
  available...
 
  Is there a simple answer?
 
 
  Regards,
  Piero
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Don Brown

Off topic, but AFAIK, Shale doesn't depend on any specific JSF
implementation.  It's goal is to fill in the gaps in the JSF
spec/framework for the user.

Don

On 12/19/06, robin bajaj [EMAIL PROTECTED] wrote:

Hi there,

May I ask a corollary question in this context.

What is the current status of Shale, is it build on top of SUN's JSF Ref.
Implementation or MyFaces
or Can I just use any JSF distro with Shale.

Thanks for your replies in advance,
regards
robin

On 12/19/06, Don Brown [EMAIL PROTECTED] wrote:

 It isn't an either/or question.  You can use JSF actions, components,
 and configuration in a Struts 2 app, using the Struts 2 JSF Plugin.
 If you prefer an action-centric design, but want to use JSF
 components, then it is worth looking into.  If you want a pure JSF
 approach, especially if you have your eye on the JSF tools, then
 MyFaces or Shale would be worth looking at.

 See also: http://cwiki.apache.org/WW/javaserver-faces.html

 Don

 On 12/19/06, Piero Sartini [EMAIL PROTECTED] wrote:
  Hello list,
 
  the last days I've read a lot about web frameworks in java. And the more
 I
  read, the more questions I have. Just writing this down, maybe someone
 has
  some thoughts that can help me.
 
  My problem is simple, or lets say it should be simple: What webframework
 is a
  good choice to start a new web application?
 
  After all, JSF seams to be popular, it is supported by big vendors and
 it is a
  standard. My problem with JSF is that its way too basic in my eyes. It
 does
  not give me best practices, its just there and says: use me. But it
 does
  not give me an idea how it is used best. But maybe I missed that. My
 feeling
  is that its a core technology like jsp ... someone should build a
 framework
  with it ...
 
  I am missing this framework around JSF that does speed up development.
 Is
  shale meant to be this framework? It matured a lot since I last looked
 at it.
  But for me, it looks like its not really accepted - maybe I am wrong. Is
  shale what I am searching for?
 
  There is JBoss Seam. I don't want to use jboss AS and not sure if its
 the best
  choice..
 
  I looked at struts2 and it feels like it could be what I searched for.
 There
  is good documentation, many examples, an maven archetype, lots of users
 and
  the possibility to use third party technologies like freemarker. But my
  problem is that I am not sure if its not better to use JSF to be
 compatible
  with future technologies. There are a lot of ajax-components for
 example, and
  we can wait that a lot of third party libraries and tools will be
  available...
 
  Is there a simple answer?
 
 
  Regards,
  Piero
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Don Brown

I should add, it therefore would be possible to run Struts 2, Shale,
and JSF in the same application.  :)

Don

On 12/19/06, Don Brown [EMAIL PROTECTED] wrote:

Off topic, but AFAIK, Shale doesn't depend on any specific JSF
implementation.  It's goal is to fill in the gaps in the JSF
spec/framework for the user.

Don

On 12/19/06, robin bajaj [EMAIL PROTECTED] wrote:
 Hi there,

 May I ask a corollary question in this context.

 What is the current status of Shale, is it build on top of SUN's JSF Ref.
 Implementation or MyFaces
 or Can I just use any JSF distro with Shale.

 Thanks for your replies in advance,
 regards
 robin

 On 12/19/06, Don Brown [EMAIL PROTECTED] wrote:
 
  It isn't an either/or question.  You can use JSF actions, components,
  and configuration in a Struts 2 app, using the Struts 2 JSF Plugin.
  If you prefer an action-centric design, but want to use JSF
  components, then it is worth looking into.  If you want a pure JSF
  approach, especially if you have your eye on the JSF tools, then
  MyFaces or Shale would be worth looking at.
 
  See also: http://cwiki.apache.org/WW/javaserver-faces.html
 
  Don
 
  On 12/19/06, Piero Sartini [EMAIL PROTECTED] wrote:
   Hello list,
  
   the last days I've read a lot about web frameworks in java. And the more
  I
   read, the more questions I have. Just writing this down, maybe someone
  has
   some thoughts that can help me.
  
   My problem is simple, or lets say it should be simple: What webframework
  is a
   good choice to start a new web application?
  
   After all, JSF seams to be popular, it is supported by big vendors and
  it is a
   standard. My problem with JSF is that its way too basic in my eyes. It
  does
   not give me best practices, its just there and says: use me. But it
  does
   not give me an idea how it is used best. But maybe I missed that. My
  feeling
   is that its a core technology like jsp ... someone should build a
  framework
   with it ...
  
   I am missing this framework around JSF that does speed up development.
  Is
   shale meant to be this framework? It matured a lot since I last looked
  at it.
   But for me, it looks like its not really accepted - maybe I am wrong. Is
   shale what I am searching for?
  
   There is JBoss Seam. I don't want to use jboss AS and not sure if its
  the best
   choice..
  
   I looked at struts2 and it feels like it could be what I searched for.
  There
   is good documentation, many examples, an maven archetype, lots of users
  and
   the possibility to use third party technologies like freemarker. But my
   problem is that I am not sure if its not better to use JSF to be
  compatible
   with future technologies. There are a lot of ajax-components for
  example, and
   we can wait that a lot of third party libraries and tools will be
   available...
  
   Is there a simple answer?
  
  
   Regards,
   Piero
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] ajaxArea embedded with displayTag

2006-12-19 Thread Joseph McGranaghan

I'm trying to use an ajaxArea for the main portion of my site.

Inside it I have control panel of several tiles.

One of the tiles contains a displayTag that I want ajaxified
unto it's own self, not the whole main ajaxArea.

Matter of fact, I can't even get it to work right with the enclosed
ajaxArea either.

I've tried every combination imaginable of ajaxArea, anchors, 
displaytag, and ajax:displayTag


Hoping some poor soul solved this one already.



Basically:

ajax:area id=ajaxFrame ajaxAnchors=true ajaxFlag=ajaxFrame

   display:table name=data id=row scope=request
class=displaytag requestURI=/myaction.do

   display:column property=itemID title=ID:
class=leftalign headerClass= sortable=true /

   /display:table

/ajax:area


Thanks,

Joe




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] ajaxArea embedded with displayTag

2006-12-19 Thread Musachy Barroso

I don't think ajax:area is an S2 tag. Is that form another ajax library?

regards
musachy

Joseph McGranaghan wrote:

I'm trying to use an ajaxArea for the main portion of my site.

Inside it I have control panel of several tiles.

One of the tiles contains a displayTag that I want ajaxified
unto it's own self, not the whole main ajaxArea.

Matter of fact, I can't even get it to work right with the enclosed
ajaxArea either.

I've tried every combination imaginable of ajaxArea, anchors, 
displaytag, and ajax:displayTag


Hoping some poor soul solved this one already.



Basically:

ajax:area id=ajaxFrame ajaxAnchors=true ajaxFlag=ajaxFrame

   display:table name=data id=row scope=request
class=displaytag requestURI=/myaction.do

   display:column property=itemID title=ID:
class=leftalign headerClass= sortable=true /

   /display:table

/ajax:area


Thanks,

Joe




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] ajaxArea embedded with displayTag

2006-12-19 Thread Joseph McGranaghan

No it's from the AjaxTags project.

I tried to post to JWP mailing list but got bounce for some reason, 
hence the [OT]


I use struts 1.3.5 though, not s2

Musachy Barroso wrote:
I don't think ajax:area is an S2 tag. Is that form another ajax 
library?


regards
musachy

Joseph McGranaghan wrote:

I'm trying to use an ajaxArea for the main portion of my site.

Inside it I have control panel of several tiles.

One of the tiles contains a displayTag that I want ajaxified
unto it's own self, not the whole main ajaxArea.

Matter of fact, I can't even get it to work right with the enclosed
ajaxArea either.

I've tried every combination imaginable of ajaxArea, anchors, 
displaytag, and ajax:displayTag


Hoping some poor soul solved this one already.



Basically:

ajax:area id=ajaxFrame ajaxAnchors=true ajaxFlag=ajaxFrame

   display:table name=data id=row scope=request
class=displaytag requestURI=/myaction.do

   display:column property=itemID title=ID:
class=leftalign headerClass= sortable=true /

   /display:table

/ajax:area


Thanks,

Joe




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Craig McClanahan

On 12/19/06, Don Brown [EMAIL PROTECTED] wrote:


It isn't an either/or question.  You can use JSF actions, components,
and configuration in a Struts 2 app, using the Struts 2 JSF Plugin.
If you prefer an action-centric design, but want to use JSF
components, then it is worth looking into.  If you want a pure JSF
approach, especially if you have your eye on the JSF tools, then
MyFaces or Shale would be worth looking at.

See also: http://cwiki.apache.org/WW/javaserver-faces.html



As Don mentions, you can use JSF components with Struts2 pretty easily, and
that can be a good avenue if you primarily want JSF for the visual
components part, and don't need/want the managed beans and lifecycle
controller parts.  If a framework on top of JSF is what you are after
(which is a reasonable thing for an application developer to want -- JSF
focuses on the component APIs and the foundations for application needs),
you can definitely look towards Shale[1] (we're putting the finishing
touches on what we hope will be a GA release) or Seam[2] (just released 1.1
).

If you like tooling assistance around your development efforts, you might
also want to take a look at what support your favorite IDE provides.  If you
happen to be in the NetBeans camp, the Visual Web Pack plugin is totally
focused around visual drag-and-drop, and includes a built in framework with
a lot of similarity to the view controller function in Shale, plus there
is pretty nice non-visual support for straight JSF coding (including code
generation for CRUD apps).  You'll also see great support for JSF in
Oracle's JDeveloper, and basic but getting there support in Eclipse.  I
can't speak to Idea's support for JSF, but wouldn't be surprised if it is
comparable.

Don


Craig

[1] http://shale.apache.org/
[2] http://jboss.com/products/seam/

On 12/19/06, Piero Sartini [EMAIL PROTECTED] wrote:

 Hello list,

 the last days I've read a lot about web frameworks in java. And the more
I
 read, the more questions I have. Just writing this down, maybe someone
has
 some thoughts that can help me.

 My problem is simple, or lets say it should be simple: What webframework
is a
 good choice to start a new web application?

 After all, JSF seams to be popular, it is supported by big vendors and
it is a
 standard. My problem with JSF is that its way too basic in my eyes. It
does
 not give me best practices, its just there and says: use me. But it
does
 not give me an idea how it is used best. But maybe I missed that. My
feeling
 is that its a core technology like jsp ... someone should build a
framework
 with it ...

 I am missing this framework around JSF that does speed up development.
Is
 shale meant to be this framework? It matured a lot since I last looked
at it.
 But for me, it looks like its not really accepted - maybe I am wrong. Is
 shale what I am searching for?

 There is JBoss Seam. I don't want to use jboss AS and not sure if its
the best
 choice..

 I looked at struts2 and it feels like it could be what I searched for.
There
 is good documentation, many examples, an maven archetype, lots of users
and
 the possibility to use third party technologies like freemarker. But my
 problem is that I am not sure if its not better to use JSF to be
compatible
 with future technologies. There are a lot of ajax-components for
example, and
 we can wait that a lot of third party libraries and tools will be
 available...

 Is there a simple answer?


 Regards,
 Piero

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Ted Husted

On 12/19/06, Piero Sartini [EMAIL PROTECTED] wrote:

Hello list,

the last days I've read a lot about web frameworks in java. And the more I
read, the more questions I have. Just writing this down, maybe someone has
some thoughts that can help me.

My problem is simple, or lets say it should be simple: What webframework is a
good choice to start a new web application?


For a small application, you might not need a framework at all. You
can do quite a bit with plain old JSP and JSTL, especially if you are
using something like DreamMaker as an IDE.

But, as applications grow from five to fifteen to fifty pages, we've
found that a MVC framework makes applications easier to maintain.



After all, JSF seams to be popular, it is supported by big vendors and it is a
standard.


As Don mentioned, the JSF plugin lets you use JSF components with
Struts 2, so it's not an either/or decision.

Just as an aside, the latest IDEA is finally shipping with the Struts
Assistant plugin enabled, as well as the Google Web Toolkit Studio,
and the Seam plugin, among others. Open source and plugin
architectures are making big vendors less relevant. (After all,
who's the Time Person of the Year? You. (and you! and you!).

* http://www.cnn.com/2006/US/12/16/time.you.tm/index.html



My problem with JSF is that its way too basic in my eyes. It does
not give me best practices, its just there and says: use me. But it does
not give me an idea how it is used best. But maybe I missed that. My feeling
is that its a core technology like jsp ... someone should build a framework
with it ...

I am missing this framework around JSF that does speed up development. Is
shale meant to be this framework? It matured a lot since I last looked at it.
But for me, it looks like its not really accepted - maybe I am wrong. Is
shale what I am searching for?


JSF is considered a MVC framework, just as ASP.NET is a MVC framework.
These frameworks are component-centric. You build pages by assembling
components, and the components can each fire their own actions to
obtain and maintain state. Frameworks like Struts and Spring MVC are
action-centric. You build actions that obtain and maintain state, and
then use pages to present the state.

Component-based frameworks tend to appeal to people who like to use an
IDE to build a visual representation of the page, and then use glue
code to paste the components together. Action-based frameworks tend to
appeal to people who like to hand-code pages and normalize code.



There is JBoss Seam. I don't want to use jboss AS and not sure if its the best
choice..


Seam has been getting some good press on the MyFaces user list. Some
people say that it overcomes several blind spots of the JSF framework.

* http://mail-archive.com/users%40myfaces.apache.org/msg31585.html



I looked at struts2 and it feels like it could be what I searched for. There
is good documentation, many examples, an maven archetype, lots of users and
the possibility to use third party technologies like freemarker. But my
problem is that I am not sure if its not better to use JSF to be compatible
with future technologies. There are a lot of ajax-components for example, and
we can wait that a lot of third party libraries and tools will be
available...


It's interesting to note that Ajax caused quite a stir for both JSF
and ASP.NET. The underling technology does not play well with AJAX.
Both frameworks have solutions now, but retrofitting those frameworks
for Ajax was a lot of work.

Meanwhile, frameworks like Struts are able to use AJAX out of the box,
with zero changes. Struts 2 is making AJAX even easier to use, but it
was never hard to begin with.

As Scotty said (or will say), The fancier the plumbing, the easier it
is to gum up the works. :)



Is there a simple answer?


The truth is that web applications are still way too much work to
create and maintain, which is why we continue to look for better
solutions.

The simplest answer I know is to pick a use case from your application
and implement it using each solution under consideration. It doesn't
have to be a big use case, maybe just a search form that brings back a
list. The important thing is to try it yourself, and choose what works
best for you.

In fact, I'm doing that myself, right now. My team is evaluating Ajax
solutions. We have a simple example application that demonstrates our
architecture. I'm about to code the front-end in the Google Web
Toolkit, to see how it goes. Film at 11.

-- HTH, Ted.
* http://www.husted.com/struts/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] ajaxArea embedded with displayTag

2006-12-19 Thread Musachy Barroso
If you put the displayTag inside the ajax:area it won't get reloaded 
after the ajax call, what you can do is put the displayTag on a page 
let's say A, the create a page B that has:


ajax:area ..   


 %@ include file=A.jsp % //or call the action here
/ajax:area

then create an action, that the ajax:area will call to update its 
content, that action return value must map to the page A.jsp so the 
content is evaluated, sent back to the page, and displayed inside the 
ajax:area.


musachy

Joseph McGranaghan wrote:

I'm trying to use an ajaxArea for the main portion of my site.

Inside it I have control panel of several tiles.

One of the tiles contains a displayTag that I want ajaxified
unto it's own self, not the whole main ajaxArea.

Matter of fact, I can't even get it to work right with the enclosed
ajaxArea either.

I've tried every combination imaginable of ajaxArea, anchors, 
displaytag, and ajax:displayTag


Hoping some poor soul solved this one already.



Basically:

ajax:area id=ajaxFrame ajaxAnchors=true ajaxFlag=ajaxFrame

   display:table name=data id=row scope=request
class=displaytag requestURI=/myaction.do

   display:column property=itemID title=ID:
class=leftalign headerClass= sortable=true /

   /display:table

/ajax:area


Thanks,

Joe




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Piero Sartini
 JSF is considered a MVC framework, just as ASP.NET is a MVC framework.
 These frameworks are component-centric. You build pages by assembling
 components, and the components can each fire their own actions to
 obtain and maintain state. Frameworks like Struts and Spring MVC are
 action-centric. You build actions that obtain and maintain state, and
 then use pages to present the state.

 Component-based frameworks tend to appeal to people who like to use an
 IDE to build a visual representation of the page, and then use glue
 code to paste the components together. Action-based frameworks tend to
 appeal to people who like to hand-code pages and normalize code.

This is my main problem I think. Not sure if I should use an action based 
framework or go with JSF. Don't care about an IDE Designer - but I do care 
about what will be in 2 years and if my application will be easy to maintain 
and easy to extend for an even longer time.

Everything you read out there is about JSF, and that it will be the future. 
Spring2 has the possibility to use it. But it overlaps functionality .. so 
its not the best solution in my eyes.

The simplest answer I know is to pick a use case from your application
and implement it using each solution under consideration. It doesn't
have to be a big use case, maybe just a search form that brings back a
list. The important thing is to try it yourself, and choose what works
best for you.

I really hoped to get an answer like: Go for this technology, its the best 
thing you can do right now
Since it seems that it's not that easy, I will do what you suggested .. just 
try out myself and see what fits my need :-)

Thanks for your long answer!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



basic JSTL question

2006-12-19 Thread Rick Schumeyer
These should be easy questions, but I can't find the answers...if 
someone could either answer them or point me to the right docs, I would 
appreciate it.


1. What is the proper uri for the jstl core library?  According to my 
JSP book it should be


%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %

but eclipse complains about unknown tags like c:out.

2. In another thread I learned that it is preferred not to use the 
struts bean tags  (Or are the bean tags ok, but not the logic tags...)
Do I want to use c:out or jsp:usebean to display the contents of an 
actionform?  How about a normal bean?


3. Can someone show me an example of using the c:out tag to display the 
contents of an ActionForm?


4. Same as 3, but for a regular bean set in the action via 
request.setAttribute ?


It's possible that if I fix #1, the rest will fall into place.  Thanks 
for any help!




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Piero Sartini
 As Don mentions, you can use JSF components with Struts2 pretty easily, and
 that can be a good avenue if you primarily want JSF for the visual
 components part, and don't need/want the managed beans and lifecycle
 controller parts.  If a framework on top of JSF is what you are after
 (which is a reasonable thing for an application developer to want -- JSF
 focuses on the component APIs and the foundations for application needs),
 you can definitely look towards Shale[1] (we're putting the finishing
 touches on what we hope will be a GA release) or Seam[2] (just released 1.1
 ).

Thanks, I will have a closer look at Shale and Seam. A framework on top of 
JSF sounds like what I am searching for.

After reading this post of you, I am not sure if struts2 is what I want.
- http://marc.theaimsgroup.com/?l=struts-devm=115090201630610w=2

 If you like tooling assistance around your development efforts, you might
 also want to take a look at what support your favorite IDE provides.  If
 you happen to be in the NetBeans camp, the Visual Web Pack plugin is
 totally focused around visual drag-and-drop, and includes a built in
 framework with a lot of similarity to the view controller function in
 Shale, plus there is pretty nice non-visual support for straight JSF coding
 (including code generation for CRUD apps).  You'll also see great support
 for JSF in Oracle's JDeveloper, and basic but getting there support in
 Eclipse.  I can't speak to Idea's support for JSF, but wouldn't be
 surprised if it is comparable.

In the NetBeans camp and I know the VWP. Unfortunately it does not fit in my 
project, mainly because of missing templates. We discussed that on nbusers a 
few days ago ;-)

Piero

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: basic JSTL question

2006-12-19 Thread Wendy Smoak

On 12/19/06, Rick Schumeyer [EMAIL PROTECTED] wrote:

These should be easy questions, but I can't find the answers...if
someone could either answer them or point me to the right docs, I would
appreciate it.

1. What is the proper uri for the jstl core library?  According to my
JSP book it should be

%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %

but eclipse complains about unknown tags like c:out.


It depends on what JSTL and Servlet spec versions you're using.  (And
the rest of the answers depend on this one.)

There is some information here to help you sort it out:
http://wiki.apache.org/struts/StrutsAndJSTL

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: basic JSTL question

2006-12-19 Thread Rick Schumeyer


Never mind!  The solution involved some not-so-obvious steps

1. download and install the jstl (ok, this should have been obvious)
2. Change the top of my web.xml (this was not obvious...see 
http://forum.java.sun.com/thread.jspa?threadID=629437tstart=0)

3. read the docs on jstl and FormBeans

Thanks anyway.

Rick Schumeyer wrote:
These should be easy questions, but I can't find the answers...if 
someone could either answer them or point me to the right docs, I 
would appreciate it.


1. What is the proper uri for the jstl core library?  According to my 
JSP book it should be


%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %

but eclipse complains about unknown tags like c:out.

2. In another thread I learned that it is preferred not to use the 
struts bean tags  (Or are the bean tags ok, but not the logic tags...)
Do I want to use c:out or jsp:usebean to display the contents of an 
actionform?  How about a normal bean?


3. Can someone show me an example of using the c:out tag to display 
the contents of an ActionForm?


4. Same as 3, but for a regular bean set in the action via 
request.setAttribute ?


It's possible that if I fix #1, the rest will fall into place.  Thanks 
for any help!




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] ajaxArea embedded with displayTag

2006-12-19 Thread Sakari.Isoniemi

Hai

A trivial question ?

I have a problem with DisplayTags (DT) in Struts2  where OGNL throws
exception from DT-
parameter like 'o-434343-p'.  (See discussion Struts2, DisplayTags
OGNL-error Sakari.Isoniemi  )

So the solution is to use Ajax to bybass Struts2-frame and OGNL ?

/S

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED] 
Sent: 20. joulukuuta 2006 3:02
To: Struts Users Mailing List
Subject: Re: [OT] ajaxArea embedded with displayTag

If you put the displayTag inside the ajax:area it won't get reloaded 
after the ajax call, what you can do is put the displayTag on a page 
let's say A, the create a page B that has:

ajax:area ..   
 
  %@ include file=A.jsp % //or call the action here
/ajax:area

then create an action, that the ajax:area will call to update its 
content, that action return value must map to the page A.jsp so the 
content is evaluated, sent back to the page, and displayed inside the 
ajax:area.

musachy

Joseph McGranaghan wrote:
 I'm trying to use an ajaxArea for the main portion of my site.

 Inside it I have control panel of several tiles.

 One of the tiles contains a displayTag that I want ajaxified
 unto it's own self, not the whole main ajaxArea.

 Matter of fact, I can't even get it to work right with the enclosed
 ajaxArea either.

 I've tried every combination imaginable of ajaxArea, anchors, 
 displaytag, and ajax:displayTag

 Hoping some poor soul solved this one already.



 Basically:

 ajax:area id=ajaxFrame ajaxAnchors=true ajaxFlag=ajaxFrame

display:table name=data id=row scope=request
 class=displaytag requestURI=/myaction.do

display:column property=itemID title=ID:
 class=leftalign headerClass= sortable=true /

/display:table

 /ajax:area


 Thanks,

 Joe




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



For Viewing data DynaValidatorForm not working, why?

2006-12-19 Thread Mallik

HI Friends
i have a problem that for viewing data DynaValidatorForm is not working
well.
if i create normal formbean it is displaying all the data well
but when i use DynaValidatorForm, the last record only displaying repeatedly 
(exactly  oracle count(*) returned value times )
why this is ?
i have to use validation framework for data inserting forms, so i want to
use the save form for both inserting form and viewing form.
how can i overcome this problem, please let me know?
thanks in advance

ur's
Mallik

-- 
View this message in context: 
http://www.nabble.com/For-Viewing-data-DynaValidatorForm-not-working%2C-why--tf2858311.html#a7985678
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts2, DisplayTags OGNL-error

2006-12-19 Thread Sakari.Isoniemi


Hai

The OGNL-StackTrace disappeared without changing the implementation 
to Ajax when I set in Struts.properties dev mode=false  ( struts.devMode = 
false )

So, there seems to be a problem with S2 / OGNL that appears 
in DevMode but don't prevent correct functionality in application to user.

This error should appear in all environments in Struts 2.0.1 / DisplayTags 1.1 
whith 'struts.devMode = true' ??

If so, please (Struts developers) correct it.

/S

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 18. joulukuuta 2006 7:50
To: user@struts.apache.org; [EMAIL PROTECTED]
Cc: displaytag-devel@lists.sourceforge.net
Subject: RE: Struts2, DisplayTags OGNL-error


OK, I'll try that (quite complicated solution).

Or would be better for whole community that DisplayTag-organisation gives 
opportunity
for programmer to define what the parameters syntax is ?

Or OpenSymphony / OGNL fix OGNL ?

/Sakari


-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: 17. joulukuuta 2006 17:03
To: Struts Users Mailing List
Subject: Re: Struts2, DisplayTags OGNL-error

Mark/Sakari

I would use the div tag javascript function to construct the href (with ajax 
control ability to dynamically populate your href based on occurence of JS 
event)..
http://cwiki.apache.org/confluence/display/WW/ajax+div+template

saf:head theme=ajax/
script type=text/javascript
   function updateReports(id) {
!-- get the window --
   var DivID = window['doTag'];
!-- populate the href attribute with the params --
   DivID.href = CustSearch.action?d-49653-o=+;
!-- refresh content and display the new content in the Div Tag --
   DivID.bind();
   }
!-- subscribe javascript updateReports to receive notifications on 
updateReportsListTopic events --
  dojo.event.topic.getTopic(updateReportsListTopic).subscribe(null, 
updateReports);
/script
form ...
saf:div theme=ajax id=doTag href=Place to acquire data
  loadingText=Loading data please ensure UpdateReports JS event executed so 
UpdateReports javascript function is able to Acquire Data
  errorText=Your Data is not in the office right now please try again after 
New Year
  ww:action id=doTagBean executeResult=true onChange=javascript: 
dojo.event.topic.publish(updateReportsListTopic,this.value);
 ww:param name=d-49653-o value=2/
 ww:param name=2ndTag value=valueFor2ndTag/
  /ww:action
/saf:div
/form

Probably missing some stuff here..anyone else?
Martin--
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: [EMAIL PROTECTED]
To: user@struts.apache.org; user@struts.apache.org
Sent: Sunday, December 17, 2006 4:02 AM
Subject: VS: Struts2, DisplayTags OGNL-error


Hai,
 
Mark Shifman wrote:
 
Are you using jsp, freemarker or velocity?
Where is displaytags getting its table from?
Here are a couple of pages that may help.
http://struts.apache.org/2.x/docs/application-session-request-objects-in-jsp.html
 
http://struts.apache.org/2.x/docs/application-session-request-objects-in-jsp.html
 
http://struts.apache.org/2.x/docs/exposing-framework-objects-to-jstl-with-a-jstl-and-displaytag-example.html
 
http://struts.apache.org/2.x/docs/exposing-framework-objects-to-jstl-with-a-jstl-and-displaytag-example.html
 
http://struts.apache.org/2.x/docs/access-to-valuestack-from-jsps.html 
http://struts.apache.org/2.x/docs/access-to-valuestack-from-jsps.html 
mas

= DisplayTag makes html / hrefs like


th class=sortable
a 
href=CustSearch.action?d-49653-o=2amp;dog=Hello+from+%27dog%27amp;attr1=Hello+from+getAttr1amp;d-49653-p=1amp;cat=Hello+from+%27cat%27amp;d-49653-s=2amp;bttra=Hello+from+getBttraamp;attra=Hello+from+getAttradayOfBirth/a/th
th class=sortable
a 
href=CustSearch.action?d-49653-o=2amp;dog=Hello+from+%27dog%27amp;attr1=Hello+from+getAttr1amp;d-49653-p=1amp;cat=Hello+from+%27cat%27amp;d-49653-s=3amp;bttra=Hello+from+getBttraamp;attra=Hello+from+getAttraaddress/a/th
thpostalCode/th

How these d-49653-.. parameters could be reaplaced to another syntax that 
OGNL accepts ?
 
I tried also with Servlet / Filter, but didn't managed to replace (haven't done 
much servlets ).
 
/Sakke