Are Tiles in Struts and Tiles in JSF the same?

2005-12-14 Thread Simonin, Bradley K (Brad)
I am gathering that Tiles are Tiles right?  Tiles in Struts are the same 
as Tiles in JSF?


--Brad

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



Re: Is JSF ready? Need advice on Struts componenets versus JSF components.

2005-12-14 Thread Simonin, Bradley K (Brad)

Now for some real professional.work related Struts versus JSF dialog.

I am really struggling right with JSF versus Struts for a current project.  I 
need to develop a dynamic Grid Form where users will be inputting data in the 
Grid Form.  The Grid From will need to be dynamic (the users will need to be 
able to delete rows and add rows to the Grid Form).  In addition, I will need a 
Calendar Control where the users will click on a specific date on a the 
Calendar Control and the Data Grid will allow the users to display and update 
data for the date the users have clicked on.

I found a great article on creating a dynamic forms in Struts here:
http://www.developer.com/java/ent/article.php/3567701
and here:
http://www.developer.com/java/ejb/article.php/10931_3321521_1

So for I have not found a Sruts server side dynamic clickable calendar control for the users to click on.  


I am currently downloading the early release of "Get It – Java Studio Creator 2 
Early Access"
http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/downloads/ 
so I can play around with what JSF has to offer as far as Calendar Controls.


Does anyone know of a calendar control for Struts?  I am not looking for JavaScript calendar control; I want a calendar control that displays an entire calender for a single month that is server side Struts based. 


--Brad


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



Re: checkbox behavior hard to control?

2005-12-09 Thread Simonin, Bradley K (Brad)

Thank you very much.  I forgot about that.

--Brad.

Michael Jouravlev wrote:


On 12/9/05, Simonin, Bradley K (Brad) <[EMAIL PROTECTED]> wrote:
 


I am just curious.  Does this situation occur with the Multibox tag?   I
guess I don't understand that  when  you uncheck a checkbox sometime the
bean is not  updated?
   



Unchecked checkboxes are not sent to the server by browser, not even a
key with empty value. Only checked ones are sent.

So, before accepting input you clear checkboxes in your code, then you
process the request. Whatever checked ones you receive, you set their
corresponding values in the applicaiton. Others are left unset.

Michael.

-
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: checkbox behavior hard to control?

2005-12-09 Thread Simonin, Bradley K (Brad)

Michael Jouravlev wrote:


On 12/5/05, Nicolas Bizard <[EMAIL PROTECTED]> wrote:
 


I am not sure what "clear the state" means?
I'm also not sure about what to put in reset(), and when it is executed...
   



Is this a question?

 


It seems that the problem is specific to checkboxes :
when unchecked, the state is not updated to the bean
   



Indeed it does not. Search the FAQ for that.

Michael.

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

 

I am just curious.  Does this situation occur with the Multibox tag?   I 
guess I don't understand that  when  you uncheck a checkbox sometime the 
bean is not  updated? 


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



Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-02 Thread Simonin, Bradley K (Brad)

Craig McClanahan wrote:


On 12/1/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
 


I think Struts is pretty cool.  But JSF seems to be the future so I am now
learning it.  But I am getting really confused about Shale versus pure JSF
versus Struts.  Maybe Craig McClanahan can give me some more insite into
what I should be learning for my next Java based web project. Is JSF the
future? And if it is which JSF should I be learning?
   




One of the most important lessons that newcomers to the software realm need
to understand is this:  there is no "one size fits all" answer to any
significant engineering problem.

Fundamentally, in the Java-based web application architecture space, two
schools of thought are emerging as very popular ... an "action framework
based approach" (Struts 1.x, WebWork, Spring MVC, ...) and a "component
based approach" (JavaServer Faces, Tapestry, ASP.Net, ...).  Both approaches
have their adherents, and the programming styles involved will tend to
attract developers with different tastes for things like "object
orientedness" and where the responsibility for creating the actual view tier
markup should be placed (put way too simplistically, templates versus
components).  But both architectural styles are viable, and neither one is
going to go away any time soon -- although I will contend that both
architectural styles will need to pay attention to what AJAX means to the
craft of creating web applications.

So, which should you learn?  Depends on what you are planning to do.  If you
are tasked to maintain and enhance an existing Struts-based (or WebWork
based, or whatever-based) application, it would certainly behoove you to
become an expert in that underlying technology :-).  If, on the other hand,
you are facing a new project, you need to evaluate issues like:

* How long do I have to complete it?

* What's the expertise level of my team with the various technologies?

* Do I have a budget (time and/or $$) to acquire expertise and/or tools
 that support the various technologies?

My personal belief is that component oriented development is more accessible
to a wider array of developers than action oriented frameworks.  Therefore,
I spend my time (disclaimer:  I'm paid to do this too, but that doesn't
cover much of my open source effort :-) working on technologies that are
designed to increase the overall number of developers in the world that are
using Java based technologies.  Does that mean JSF is "better" than action
oriented frameworks?  Depends on your goals -- for my goal, it is, but
remember  this is not a "good" versus "bad" dichotomy ... its "better"
(for this particular goal) versus "good".

One other potential confusion around JSF, in particular, is that it can be
viewed as having a couple of different "personalities":

* JSF is an API for user interface components that happens
 to support a view-tier oriented controller tier.

* JSF is an extensible controller tier that also has a robust
 view tier API for components.

Nearly every existing web framework can claim "we integrate with JSF" based
on viewing it as the first personality.  What you end up with is the ability
to use the emerging set of JSF components that are available, but you're not
leveraging the fact that JSF knows how to do things like navigation between
pages as well.

Shale was (until Seam came along) the only framework I know of that took the
second viewpoint -- Shale is all about leveraging existing JSF capabilities
as the front controller, and utilizing its extensibility APIs to add
functionality and/or ease of use, *without* reimplementing fundamental
things (like validation and navigation) that JSF already supports.  Starting
from this viewpoint lets Shale be a *lot* smaller (read, "less for me to
have to learn").  Indeed, the core of Shale is currently around 112kb
(versus nearly five times that for Struts 1.2).  Yes, you need a JSF
implementation as well, but that's not a long term problem ... any app
server that implements Java EE 5 is going to be required to support JSF,
just like it's required to support the servlet and JSP APIs, so it's going
to be built in to your servers already -- and, if you use a standalone
container like Tomcat, you can accomplish the same result by putting either
the JSF RI or MyFaces into the shared library directories available to all
webapps installed on that server instance.

So, to answer your original question, it is in your economic best interest
to understand both kinds of technologies, and to learn which ones to apply
in which circumstances.  Buf if you find that JSF fits your needs for a
particular project, you'll also want to investigate Shale, because it
smooths off a bunch of the edges of component based development -- to say
nothing of providing functional equivalence with Struts 1.x support for
things like client side validation and support for Tiles.

--Brad


Craig

 

Thanks Craig.  I guess now my question is when will I be able to buy 
books o