Re: contrib/struts-shale-mailreader

2004-11-13 Thread Struts User
> Having said all this, the framework is powerful for sophisticated web
> production side, where all fragments of each page are completely dynamic
> based on built-in backend intelligence. Tiles is appropriate for such
> page, rather than each page need a backing bean. 

Hi Batien,

I am running the struts-shale-mailreader and just started to look into
Java Server Faces and Shale. Thus, I am not totally familiar with the
new frameworks and hope you can bear with me.

Are you saying that Tile and backing bean don't have to co-exist? I
thought Tiles and backing bean are two different things. Backing bean
is sort of like ActionForm in Struts. More accurately, backing bean is
like OzPage in Tak's introductory document.

Please correct me if I am wrong.

Thanks!
Lee

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



Re: Multibox deselection problem

2004-11-13 Thread Rick Reumann
Olivier Croisier wrote the following on 11/12/2004 9:46 AM:
Now here is my problem. When I de-select all the checkboxes in my jsp 
page, by hand or by javascript, my processImport.do receives a String[] 
array containing the entities that were defined in preparaImport.do as 
default, instead of an empty array.
Use the form reset method to always set the String array to an empty 
array first.

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


OzStruts document is updated

2004-11-13 Thread Tak Yoshida
Hi,

Thanks you so much for many constructive feedbacks to OzStruts.

I was surprised what a lot of people in a glow of enthusiusm are looking for 
better paradigm.
I'm happy with these constructive discussion have started from my thread,
even though most of people don't care about my stuff at all. I'm really 
positive.
Before I will catch up new things, I want to make my baby more solid,
and I still believe it's nice on current Struts.

I have updated the intro doc with your feedbacks,
to show how OzStruts solves the issue I think,
where the previous doc wasn't clear enough.

The modifications are;
* number 4 in pain list section
* re-wrote "Page Driven with OzStruts" section

Also OzStruts is updated to support PRG pattern with samples.
This is my first time to use this, and it work very nicely, I like this.

The new doc is available at
http://sourceforge.net/project/showfiles.php?group_id=111296&package_id=120334

And new OzStruts is available at
http://sourceforge.net/project/showfiles.php?group_id=111296&package_id=128965

Regards,
Tak

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



Re: contrib/struts-shale-mailreader

2004-11-13 Thread BaTien Duong
Craig McClanahan wrote:
On Fri, 12 Nov 2004 14:35:07 -0700, BaTien Duong
<[EMAIL PROTECTED]> wrote:
 

Hello Craig:
i take a casual look at shale and the running mailreader example. I have
some questions:
1) Shale is designed as a servlet filter that hook to a DialogController
and invoke a specified ViewController backing bean. Jsf has application
ViewHandler and MyFaces wires each page into a tiles definition so both
tiles and many backing beans under the same page can be used. There must
be some kind of hook to make Shale work on top of MyFaces
JspTilesViewHandlerImpl so every page can use Shale facilities and is a
tile, under which there are many backing beans of the page UI. You
probably has this thought out as i see MyFaces portion in the example
web.xml. If this is the case, would you elaborate it?
2) Have you thought of a demo using Shale with MyFaces tiles?
   

My experience with the struts-faces integtation library is that
MyFaces (at least in 1.0.7) still has some fatal incompatibilities
that make it difficult to work with.  That being said, the build.xml
for the integration library examples (such as
struts-faces/example1-webapp/build.xml) has the conditional stuff for
using MyFaces versus the JSF RI to be copied.  If someone wants to
create a Shale+Tiles demo I'd be interested ... but personally I think
the value of such an integration would be *much* higher if it was done
in such a way that it would run on any JSF implementation, not just
MyFaces.
Craig
 

Hello Craig:
I totally share your view and all of my custom components (by the way, 
this is the meat of jsf for programmers; come onboard!) are only based 
on jsf API to make it worth. However, we live in a real world where we 
must use whatever available to get things up and running having due 
regard for re-useability, scalability, etc based on best practices.

Shale proposal is excellent, based on established standards. Combining 
with common-chain, we have a very elegant and solid framework to build 
on. Since it is based on servlet filter and listenner, many things can 
plug in, including Rich Client (Vic may think of a way to plug a Rich 
Client in here so we do not have to rely on Javascript to have both 
solid server side / client side framework - i am watching Oracle ADF in 
this area).

Having said all this, the framework is powerful for sophisticated web 
production side, where all fragments of each page are completely dynamic 
based on built-in backend intelligence. Tiles is appropriate for such 
page, rather than each page need a backing bean. A proper way is to have 
Tiles as a plug-in into Shale rather than hard-hook as in MyFaces. But 
as it stands right now, MyFaces has at least a hard-coded facility to 
get the job done. Myfaces is now a part of Apache which makes many 
developers and companies feel safe to work with.

I hope Cedric ( hello Cedric :-) ) may have some time to re-vitalize 
Tiles as in my email greeting when i saw him again on Struts list.

BaTien
DBGROUPS
 

Thanks
BaTien
DBGROUPS
-
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: Frustrating Tiles error - Error - tag.getAsString

2004-11-13 Thread David G. Friedman
Michael,

Where is line 95?  Your index.jsp looks too short to have 95 lines. Is it
one of the included files?  Can you cut & paste all tiles:getAsString lines
from the related tiles for main.layout? Those would be
/jsp/header.jsp
/jsp/login.jsp
/jsp/footer.jsp
/jsp/welcome.jsp

Also, are you positive there are no errors in your container's startup log
files that would indicated problems loading Struts or tiles?  Please include
those logs showing proper startup.  If Tomcat, that would be stderr.txt,
stdlog.txt and localhost_log.2004-11-13.txt. :)

Regards,
David

-Original Message-
From: Michael Klaene [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 13, 2004 9:21 AM
To: [EMAIL PROTECTED]
Subject: RE: Frustrating Tiles error - Error - tag.getAsString


Sorry about that.  So many files, I forgot to list the
plugin element in the struts-config file.  Here it is:

 
  
  

  
  

If anyone has any ideas as to my problem, please let
me know.

Thanks again,
Mike
--- "David G. Friedman" <[EMAIL PROTECTED]> wrote:

> Michael,
>
> Can you show the Tiles plugIn from your
> struts-config.xml?  You don't
> mention it.  It is probably something like this:
>
>  className="org.apache.struts.tiles.TilesPlugin">
>   
>property="definitions-parser-validate"
> value="true"/>
>  value="/WEB-INF/tiles-defs.xml"/>
> 
>
> Regards,
> David
>
> -Original Message-
> From: Michael Klaene [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 12, 2004 7:22 PM
> To: [EMAIL PROTECTED]
> Subject: Frustrating Tiles error - Error -
> tag.getAsString
>
>
>
> I can't seem to see the problem here.  I think it's
> simple but I've just
> been staring too long!  I keep getting a 'Error
> -tag.getAsString' error in
> my app.  I suspect it has nothing to do with the
> tiles defs but is happening
> before that.  But I can't figure it out.  Below is
> my info and the error
> message.  If anyone can help me out, I'd appreciate
> it!
>
> Thanks in advance,
> Mike
> --
> **here's my index.jsp file: **
>
>
> <%@ page contentType="text/html" %>
>
> <%@ taglib prefix="c"
> uri="http://java.sun.com/jstl/core"; %>
>
> <%@ taglib prefix="fmt"
> uri="http://java.sun.com/jstl/fmt"; %>
>
> <%@ taglib prefix="tiles"
> uri="/WEB-INF/tlds/struts-tiles.tld" %>
>
>  name="title"/>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> **my tiles-defs file in WEB-INF : **
>
> 
>
> 
> "-//Apache Software Foundation//DTD Tiles
> Configuration 1.1//EN"
>
>
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>  extends="main.layout">
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> **I have the following tld here : **
>
> WEB-INF\tlds\struts-tiles.tld
>
> **And the last element in my web.xml file: **
>
> 
>
>
/WEB-INF/tlds/struts-tiles.tld
>
>
/WEB-INF/tlds/struts-tiles.tld
>
> 
>
> **Application's error message:
> exception javax.servlet.ServletException: Error -
> tag.getAsString : component context
> is not defined. Check tag syntax
>
>
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
> mpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:800)
org.apache.jsp.index_jsp._jspService(index_jsp.java:79)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 11)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> root cause
>
> javax.servlet.jsp.JspException: Error -
> tag.getAsString : component context
> is not defined. Check tag syntax
>
org.apache.struts.taglib.tiles.GetAttributeTag.doEndTag(GetAttributeTag.java
:198)
org.apache.jsp.index_jsp._jspx_meth_tiles_getAsString_0(index_jsp.java:95)
org.apache.jsp.index_jsp._jspService(index_jsp.java:59)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> -
>
=== message truncated ===



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



RE: struts-template.tld

2004-11-13 Thread David G. Friedman
Strangely, this isn't listed in the Changes section on the Struts site, but
here is a previous posting from Craig last month explaining your problem:
http://marc.theaimsgroup.com/?l=struts-user&m=109820688120864&w=2

___ begin message 
From:   Craig McClanahan 
Date:   2004-10-19 17:27:37
Message-ID: 

Sounds like you're upgrading from 1.0.2?  If so, struts-form was
replaced by struts-html (in 1.1), and struts-template was deprecated
in 1.1 and removed in 1.2 -- it's replaced by Tiles.

... etc...
___ end message 

Regards,
David

-Original Message-
From: Stefan Clos [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 13, 2004 10:04 AM
To: [EMAIL PROTECTED]
Subject: struts-template.tld


I just downloaded the struts-1.2.4 binary.
In the lib-directory is no struts-template.tld
Why?
Is there no need for it in struts 1.2.4?
I found nothing in the release notes.

Thanks

--
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum superg|nstigen Komplett-Preis!

-
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-template.tld

2004-11-13 Thread Stefan Clos
I just downloaded the struts-1.2.4 binary.
In the lib-directory is no struts-template.tld
Why?
Is there no need for it in struts 1.2.4?
I found nothing in the release notes.

Thanks

-- 
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!

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



RE: Frustrating Tiles error - Error - tag.getAsString

2004-11-13 Thread Michael Klaene
Sorry about that.  So many files, I forgot to list the
plugin element in the struts-config file.  Here it is:

 
   
  

   
  

If anyone has any ideas as to my problem, please let 
me know.  

Thanks again,
Mike   
--- "David G. Friedman" <[EMAIL PROTECTED]> wrote:

> Michael,
> 
> Can you show the Tiles plugIn from your
> struts-config.xml?  You don't
> mention it.  It is probably something like this:
> 
>  className="org.apache.struts.tiles.TilesPlugin">
>   
>property="definitions-parser-validate"
> value="true"/>
>  value="/WEB-INF/tiles-defs.xml"/>
> 
> 
> Regards,
> David
> 
> -Original Message-
> From: Michael Klaene [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 12, 2004 7:22 PM
> To: [EMAIL PROTECTED]
> Subject: Frustrating Tiles error - Error -
> tag.getAsString
> 
> 
> 
> I can't seem to see the problem here.  I think it's
> simple but I've just
> been staring too long!  I keep getting a 'Error
> -tag.getAsString' error in
> my app.  I suspect it has nothing to do with the
> tiles defs but is happening
> before that.  But I can't figure it out.  Below is
> my info and the error
> message.  If anyone can help me out, I'd appreciate
> it!
> 
> Thanks in advance,
> Mike
> --
> **here's my index.jsp file: **
> 
> 
> <%@ page contentType="text/html" %>
> 
> <%@ taglib prefix="c"
> uri="http://java.sun.com/jstl/core"; %>
> 
> <%@ taglib prefix="fmt"
> uri="http://java.sun.com/jstl/fmt"; %>
> 
> <%@ taglib prefix="tiles"
> uri="/WEB-INF/tlds/struts-tiles.tld" %>
> 
>  name="title"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> **my tiles-defs file in WEB-INF : **
> 
> 
> 
>  
> "-//Apache Software Foundation//DTD Tiles
> Configuration 1.1//EN"
> 
>
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  extends="main.layout">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> **I have the following tld here : **
> 
> WEB-INF\tlds\struts-tiles.tld
> 
> **And the last element in my web.xml file: **
> 
> 
> 
>
/WEB-INF/tlds/struts-tiles.tld
> 
>
/WEB-INF/tlds/struts-tiles.tld
> 
> 
> 
> 
> 
> **Application's error message:
> 
> exception
> 
> javax.servlet.ServletException: Error -
> tag.getAsString : component context
> is not defined. Check tag syntax
> 
>
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
> mpl.java:867)
> 
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:800)
> 
>
org.apache.jsp.index_jsp._jspService(index_jsp.java:79)
> 
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> 
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 11)
> 
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> 
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> 
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
> root cause
> 
> javax.servlet.jsp.JspException: Error -
> tag.getAsString : component context
> is not defined. Check tag syntax
> 
>
org.apache.struts.taglib.tiles.GetAttributeTag.doEndTag(GetAttributeTag.java
> :198)
> 
>
org.apache.jsp.index_jsp._jspx_meth_tiles_getAsString_0(index_jsp.java:95)
> 
>
org.apache.jsp.index_jsp._jspService(index_jsp.java:59)
> 
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> 
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 11)
> 
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> 
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> 
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
> 
> 
> 
> 
> 
> 
> -
> 
=== message truncated ===




__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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



RE: Application Development Procedure Doc (Again)

2004-11-13 Thread Dan Cancro
Thanks, David.  Great doable ideas!

I have a couple questions...

Where is the best place to put server side validation?
 I think that's a substep of either "Author Business
Services" or "Author Actions".
 
Same question about client-side validation.

Do you think Bugzilla is more of a QA- or a Team-
option?  

I'm a little hesitant to put source control as an
option although it is certainly necessary when you
have a team.  I'd hate to be without it as a solo
developer either.  I guess it would be less optional
if it was less work to setup.  Do you have many small
projects where it would slow you down if you used it?

Is "adding authentication with JAAS, SecurityFilter,
roles.." a separate step or do you do it by changing
how you code some of the other files?

Dan



__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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