filterform clear button not clearing everything?

2010-01-03 Thread Sam Zilverberg
I have a default data table/filterform/filter toolbar set up that displays
info about some entity customer.
the table has a couple of text filtered columns that display the entity's
properties.

for some reason the clear button clears some columns but not the others.
it clears the column that reflects the property String referenceId but not
the column that reflects the property String name.

this is on wicket 1.4.3
I've been trying to find the cause to this problem without any success for
some time now.
any ideas what could be the problem?


Hello World Portlet

2010-01-03 Thread Mansour Al Akeel
I am trying to understand portlets using wicket. I read on multiple
resources, that wicket supports JSR 286 in a transparent way. However,
I can not see any reference to a simple portlet application to adopt
as the basis for my project and build on top of it.
I have checked out the examples from the svn wicket-examples and
ran the application with the embeded jetty. But I was not able to find
the portlet application runing. After all I find the
WicketExamplesMenuPortlet is a bit unclear to me
.
What I find unclear, is the way it functions. It extends a wicker
portlet, but the application is ran from WebApplication instance that
mounts EditPage, HeaderPage, and doesn't seem to have any direct link
to the WicketPortlet.

Any hint ?

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxSubmitLink not calling the onsubmit event handler

2010-01-03 Thread Anantha Kumaran
Is it possible to add a onsubmit event to a form that is submitted using
AjaxSubmitLink?

if not so is there any other way to handle validation stuffs..


Re: filterform clear button not clearing everything?

2010-01-03 Thread Sam Zilverberg
After some more digging in the archives i found a similar post:
http://old.nabble.com/GoAndClearFiler-not-clearing-correctly-td22538944.html#a22727463

The problem has to do with how equals() is implemented for the entity.
My implementation of equals only matches the referenceId property to check
for equality.
So when filtering only for the property name, the former entity and the
new one are considered equals
because they both have a null referenceId.

My solution is extending my entity to some filter-entity and overriding
equals.

Hope this helps anyone in the future


On Sun, Jan 3, 2010 at 11:09 AM, Sam Zilverberg samzilverb...@gmail.comwrote:

 I have a default data table/filterform/filter toolbar set up that displays
 info about some entity customer.
 the table has a couple of text filtered columns that display the entity's
 properties.

 for some reason the clear button clears some columns but not the others.
 it clears the column that reflects the property String referenceId but not
 the column that reflects the property String name.

 this is on wicket 1.4.3
 I've been trying to find the cause to this problem without any success for
 some time now.
 any ideas what could be the problem?



Re: [announce] Wicket Stuff Core - JavaEE Inject

2010-01-03 Thread Paul Szulc
Will it work with JEE6?

2009/12/31 Major Péter majorpe...@sch.bme.hu

 Hi all,

 I am proud to announce the semi-new JavaEE Inject project in Wicket
 Stuff Core, which was formerly known as wicket-contrib-javaee.

 The goal of the project:
 Make the @EJB, @Resource and @PersistenceUnit annotations available for
 Wicket users, to make the development more easier. This means, that when
 your components are instantiating, the annotated fields will be injected
 properly, so you can use them for whatever you want.

 The project itself didn't changed much, some javac warnings has been
 solved, but it has now a newer Example application too, which will
 demonstrate for you the usage of the annotation based injecting. The
 example is based on maven, so this would be also a good example on how
 to use enterprise applications with wicket and maven.

 So now, if you think, that this stuff is cool and want to use it, you
 only have to do the followings:
 - Add Wicket Stuff Repository to your maven repository list (if you've
 not already done so):
 repository
idwicket-stuff/id
layoutdefault/layout
urlhttp://wicketstuff.org/maven/repository/url
 /repository
 - Add the JavaEE Inject dependency to your web module:
 dependency
groupIdorg.wicketstuff/groupId
artifactIdjavaee-inject/artifactId
version1.4-SNAPSHOT/version
 /dependency
 - Follow the Wiki instructions at
 http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaeeor
 try out for yourself the example application.
 - Profit

 Project Future:
 In the future, I would like to create a more up-to-date documentation
 for the project, better JavaDoc, and solve the JIRA issues too, and of
 course follow the modifications of the Wicket framework, so the project
 could work with the newest version always.

 Best Regards,
 Peter Major

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Best regards,
Paul Szulc

http://paulszulc.wordpress.com


Re: [announce] Wicket Stuff Core - JavaEE Inject

2010-01-03 Thread Major Péter
Yes, I've just checked with No-local-interface view, Singleton beans and
web-layer EJB's and they all worked without any problem.

Regards,
Peter

2010-01-03 10:43 keltezéssel, Paul Szulc írta:
 Will it work with JEE6?
 
 2009/12/31 Major Péter majorpe...@sch.bme.hu
 
 Hi all,

 I am proud to announce the semi-new JavaEE Inject project in Wicket
 Stuff Core, which was formerly known as wicket-contrib-javaee.

 The goal of the project:
 Make the @EJB, @Resource and @PersistenceUnit annotations available for
 Wicket users, to make the development more easier. This means, that when
 your components are instantiating, the annotated fields will be injected
 properly, so you can use them for whatever you want.

 The project itself didn't changed much, some javac warnings has been
 solved, but it has now a newer Example application too, which will
 demonstrate for you the usage of the annotation based injecting. The
 example is based on maven, so this would be also a good example on how
 to use enterprise applications with wicket and maven.

 So now, if you think, that this stuff is cool and want to use it, you
 only have to do the followings:
 - Add Wicket Stuff Repository to your maven repository list (if you've
 not already done so):
 repository
idwicket-stuff/id
layoutdefault/layout
urlhttp://wicketstuff.org/maven/repository/url
 /repository
 - Add the JavaEE Inject dependency to your web module:
 dependency
groupIdorg.wicketstuff/groupId
artifactIdjavaee-inject/artifactId
version1.4-SNAPSHOT/version
 /dependency
 - Follow the Wiki instructions at
 http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaeeor
 try out for yourself the example application.
 - Profit

 Project Future:
 In the future, I would like to create a more up-to-date documentation
 for the project, better JavaDoc, and solve the JIRA issues too, and of
 course follow the modifications of the Wicket framework, so the project
 could work with the newest version always.

 Best Regards,
 Peter Major

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Hello World Portlet

2010-01-03 Thread Wilhelmsen Tor Iver
 What I find unclear, is the way it functions. It extends a wicker
 portlet, but the application is ran from WebApplication instance that
 mounts EditPage, HeaderPage, and doesn't seem to have any direct link
 to the WicketPortlet.

The link is via the filter mapping and page mounting. Case in point:

1) You use a WicketFilter in web.xml as normal, this is the one that knows of 
the Application. However, for the portlet case you need to add 
init-param
param-namedetectPortletContext/param-name
param-valuetrue/param-value
/init-param
to the filter definition so that it can detect the portlet API things like 
PortletRequest etc.

2) In portlet.xml you use WicketPortlet, but need at least two things :

2.1) To tell the portlet of the path. This would be the same path that the 
associated filter-mapping in web.xml:
init-param
namewicketFilterPath/name
value/foo/value
/init-param
2.2) Tell it the paths to use for the various modes, at least VIEW; These need 
to be bookmarkable, mounted Pages:
init-param
nameviewPage/name
value/foo/view/value
/init-param
in this case the Application needs to have mountBookmarkablePage(/view, 
SomePage.class);

Note that you normally either need one Application per portlet, or few ones 
with multiple Pages mounted for the various portlets.

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Storing Objects vs Primary Key in Session

2010-01-03 Thread Norman Elton
In the phonebook application, there are check boxes that use a special
model (CheckBoxModel) to populate a SetLong. This set stores the
primary-key of all the checked contacts. These are then fed to the DAO
to delete all the selected contacts.

But, let's say that there is an option called change all selected
names to 'fred'. It would be silly to have a DAO method called,
changeFirstName(int id, String new_name). Instead, this would be
cleaner:

for (Contact curr_contact: selected_contacts) {
  curr_contact.setFirstName(fred);
  contact_dao.save(curr_contact);
}

This means that, instead of storing primary keys in a SetLong, we
should store the actual object in a SetContact. Assuming that the
object being stored is serializable and fairly small, are there any
performance implications here?

Thanks,

Norman

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxSubmitLink not calling the onsubmit event handler

2010-01-03 Thread Mathias Nilsson

form.add ( new AjaxSubmitLink(){

protected void onSubmit(AjaxRequestTarget target, Form form){
   // Add  feedback and do ajax stuff.
}

protected void onError(AjaxRequestTarget target, Form form){
   // Add FeedbackPanel here
   target.add( feedback );
}});
-- 
View this message in context: 
http://old.nabble.com/AjaxSubmitLink-not-calling-the-onsubmit-event-handler-tp2718p27002962.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket + Scala + Spring

2010-01-03 Thread Giovanni
I'm developing two new applications (a webapp + a standalone) using Scala + 
Spring + Wicket 1.4.5 (webapp) + H2 database.

The development is nice and interesting.

Wicket is working with Scala very well.

If someone else has a similar experience, please share it.

Best regards
giovanni


  

Re: InvalidUrlException thrown while clicking row in a InMethod DataGrid

2010-01-03 Thread Marcin Palka

Hi,

Thanks for your reply. I believe these callbacks are not mandatory. Your
workaround works fine but it also causes the grid selection to disappear
which I don't want to happen.  Thanks to your tip I found another
workaround. This is to use the CloseButtonCallback to hide the iframe before
closing the modal window. This prevents the exception from being thrown.
Anyway the core reason of the problem still remains. Further testing shown
that only the row selection causes the exception. Other operations on the
grid like sorting, switching pages work just fine.

br,
Marcin Palka


Juan Kipes wrote:
 
 I think you forgot this method in the modal
 
 modal.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() {
 
 });
 
 
 modal.setWindowClosedCallback(new
 ModalWindow.WindowClosedCallback()
 {
 
 });
 
 I attached the modified quickstar
 

-- 
View this message in context: 
http://old.nabble.com/InvalidUrlException-thrown-while-clicking-row-in-a-InMethod-DataGrid-tp27001559p27004581.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



WicketTester -- No Form onSubmit when using Ajax DropDownChoice Component

2010-01-03 Thread Steve Hiller
Hi All,

I'm having an issue when using WicketTester with a form that has 3
DropDownChoice component, which are linked together using the
AjaxFormComponentUpdatingBehavior. In the following code snippet,
selecting from the brands DropDownChoice causes the categories
DropDownChoice to be filled. Then, selecting from the categories 
DropDownChoice causes the titles DropDownChoice to be filled.

All of this works fine. However, the call to formTester.submit()
does not trigger the form's onSubmit method. Any ideas what I am
doing wrong? This is using Wicket version 1.3.7.

Thanks,
Steve

--
WicketTester tester = new WicketTester(webapp);
tester.setupRequestAndResponse();

FormTester formTester = tester.newFormTester(mainPanel:officeSelectorForm);
formTester.select(brands, 0);
tester.executeAjaxEvent(mainPanel:officeSelectorForm:brands, onchange);
tester.assertComponentOnAjaxResponse(mainPanel:officeSelectorForm:categories);
 
formTester.select(categories, 0);
tester.executeAjaxEvent(mainPanel:officeSelectorForm:categories, onchange);
tester.assertComponentOnAjaxResponse(mainPanel:officeSelectorForm:titles); 
formTester.select(titles, 0);

formTester.submit();
--


Re: Wicket + Scala + Spring

2010-01-03 Thread Gary Thomas
Same here - not much more to say other than after 10 years of working 
with Java webapps,

learning both Wicket and Scala have made the past 6 months very enjoyable.

Immediately before trying Wicket, I was a die-hard Struts/Spring MVC 
user and didn't know what I was missing.  Scala+Wicket is a nice mix.


Best,
g


On 1/3/10 11:24 AM, Giovanni wrote:

I'm developing two new applications (a webapp + a standalone) using Scala + 
Spring + Wicket 1.4.5 (webapp) + H2 database.

The development is nice and interesting.

Wicket is working with Scala very well.

If someone else has a similar experience, please share it.

Best regards
giovanni



   



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket + Scala + Spring

2010-01-03 Thread Gary Thomas
P.S. though one slight difficulty I've run into is the need to translate 
between Scala and Java collections.
Perfectly doable, and not a Wicket problem, but takes a way some of the 
elegance of coding purely in Scala.


Happy to hear if anyone has tips on elegant ways of dealing with this.


On 1/3/10 4:38 PM, Gary Thomas wrote:
Same here - not much more to say other than after 10 years of working 
with Java webapps,
learning both Wicket and Scala have made the past 6 months very 
enjoyable.


Immediately before trying Wicket, I was a die-hard Struts/Spring MVC 
user and didn't know what I was missing.  Scala+Wicket is a nice mix.


Best,
g


On 1/3/10 11:24 AM, Giovanni wrote:
I'm developing two new applications (a webapp + a standalone) using 
Scala + Spring + Wicket 1.4.5 (webapp) + H2 database.


The development is nice and interesting.

Wicket is working with Scala very well.

If someone else has a similar experience, please share it.

Best regards
giovanni








-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Hello World Portlet

2010-01-03 Thread Mansour Al Akeel
Thank you Tor:

Here's what I have. this is copied from the web.xml from the wicket
maven project :

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
display-nameReports/display-name
filter
filter-namewicket.report/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name

param-valuecom.example.automotive.Application/param-value
/init-param
init-param
param-namedetectPortletContext/param-name
param-valuetrue/param-value
/init-param
/filter
filter-mapping
filter-namewicket.report/filter-name
url-pattern/report/*/url-pattern
/filter-mapping
/web-app


Here's my portlet.xml :
portlet-app xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
portlet
descriptionMy Wicket portlet examples/description
portlet-nameWicketExamplesMenuApplication/portlet-name
display-namewicket examples/display-name

portlet-classcom.example.automotive.BirtPortlet/portlet-class
init-param
namewicketFilterPath/name
value/report/value
/init-param
init-param
nameviewPage/name
value/report/view/value
/init-param
init-param
nameeditPage/name
value/report/edit/value
/init-param
supports
mime-type*/*/mime-type
portlet-modeVIEW/portlet-mode
portlet-modeEDIT/portlet-mode
/supports
supported-localeen/supported-locale
portlet-info
titleWicket Birt Portlet Examples/title
keywordsWicket/keywords
/portlet-info
/portlet
/portlet-app

And my WebApplication class:

import javax.servlet.ServletContext;
import org.apache.wicket.Page;
import org.apache.wicket.protocol.http.WebApplication;

public class Application extends WebApplication {
@Override
public Class? extends Page getHomePage()
{
return ViewReport.class;
}
@Override
protected void init()
{
mountBookmarkablePage(/view, ViewReport.class);
mountBookmarkablePage(/edit, EditReport.class);
servletContext = getWicketFilter().getFilterConfig()
.getServletContext();
}
private static ServletContext servletContext;
}

Now, when I deploy to Jetspeed I get this error in catalina.out, and I
was not able to find any relevant exception in the logs.
I will change the log level and dig further. but I don't know, if
there's something wrong with the web.xml or portlet.xml ?

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxSubmitLink not calling the onsubmit event handler

2010-01-03 Thread Anantha Kumaran
is there any way to do this on the client side.I want to do some client side
stuff before submitting the form.

On Sun, Jan 3, 2010 at 9:36 AM, Mathias Nilsson wicket.program...@gmail.com
 wrote:


 form.add ( new AjaxSubmitLink(){

 protected void onSubmit(AjaxRequestTarget target, Form form){
   // Add  feedback and do ajax stuff.
 }

 protected void onError(AjaxRequestTarget target, Form form){
   // Add FeedbackPanel here
   target.add( feedback );
 }});
 --
 View this message in context:
 http://old.nabble.com/AjaxSubmitLink-not-calling-the-onsubmit-event-handler-tp2718p27002962.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Hello World Portlet

2010-01-03 Thread Mansour Al Akeel
Sorry, Forgot to include the error message:

Found web.xml
Found WEB-INF/portlet.xml
Attempting to add portlet_2_0.tld to war...
Adding portlet_2_0.tld to war...
Creating war /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war ...
War /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war created
Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/reports-0.5.4]
Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive reports-0.5.4.war
Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/reports-0.5.4] startup failed due to previous errors




On Mon, Jan 4, 2010 at 12:27 AM, Mansour Al Akeel
mansour.alak...@gmail.com wrote:
 Thank you Tor:

 Here's what I have. this is copied from the web.xml from the wicket
 maven project :

 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
        xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
        version=2.4
        display-nameReports/display-name
        filter
                filter-namewicket.report/filter-name
                
 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
                init-param
                        param-nameapplicationClassName/param-name
                        
 param-valuecom.example.automotive.Application/param-value
                /init-param
                init-param
                        param-namedetectPortletContext/param-name
                        param-valuetrue/param-value
                /init-param
        /filter
        filter-mapping
                filter-namewicket.report/filter-name
                url-pattern/report/*/url-pattern
        /filter-mapping
 /web-app


 Here's my portlet.xml :
 portlet-app xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
        version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
        
 xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
                        
 http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
        portlet
                descriptionMy Wicket portlet examples/description
                portlet-nameWicketExamplesMenuApplication/portlet-name
                display-namewicket examples/display-name
                
 portlet-classcom.example.automotive.BirtPortlet/portlet-class
                init-param
                        namewicketFilterPath/name
                        value/report/value
                /init-param
                init-param
                        nameviewPage/name
                        value/report/view/value
                /init-param
                init-param
                        nameeditPage/name
                        value/report/edit/value
                /init-param
                supports
                        mime-type*/*/mime-type
                        portlet-modeVIEW/portlet-mode
                        portlet-modeEDIT/portlet-mode
                /supports
                supported-localeen/supported-locale
                portlet-info
                        titleWicket Birt Portlet Examples/title
                        keywordsWicket/keywords
                /portlet-info
        /portlet
 /portlet-app

 And my WebApplication class:

 import javax.servlet.ServletContext;
 import org.apache.wicket.Page;
 import org.apache.wicket.protocol.http.WebApplication;

 public class Application extends WebApplication {
   �...@override
    public Class? extends Page getHomePage()
    {
        return ViewReport.class;
    }
   �...@override
    protected void init()
    {
        mountBookmarkablePage(/view, ViewReport.class);
        mountBookmarkablePage(/edit, EditReport.class);
        servletContext = getWicketFilter().getFilterConfig()
                .getServletContext();
    }
    private static ServletContext servletContext;
 }

 Now, when I deploy to Jetspeed I get this error in catalina.out, and I
 was not able to find any relevant exception in the logs.
 I will change the log level and dig further. but I don't know, if
 there's something wrong with the web.xml or portlet.xml ?


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Hello World Portlet

2010-01-03 Thread Steve Swinsburg
Hi Mansour,

Thats just the Tomcat log, you should have a portal log that has the actual 
exception or error that occurred?

cheers,
Steve


On 04/01/2010, at 3:32 PM, Mansour Al Akeel wrote:

 Sorry, Forgot to include the error message:
 
 Found web.xml
 Found WEB-INF/portlet.xml
 Attempting to add portlet_2_0.tld to war...
 Adding portlet_2_0.tld to war...
 Creating war /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war ...
 War /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war created
 Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig checkResources
 INFO: Undeploying context [/reports-0.5.4]
 Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig deployWAR
 INFO: Deploying web application archive reports-0.5.4.war
 Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
 SEVERE: Error filterStart
 Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
 SEVERE: Context [/reports-0.5.4] startup failed due to previous errors
 
 
 
 
 On Mon, Jan 4, 2010 at 12:27 AM, Mansour Al Akeel
 mansour.alak...@gmail.com wrote:
 Thank you Tor:
 
 Here's what I have. this is copied from the web.xml from the wicket
 maven project :
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
display-nameReports/display-name
filter
filter-namewicket.report/filter-name

 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name

 param-valuecom.example.automotive.Application/param-value
/init-param
init-param
param-namedetectPortletContext/param-name
param-valuetrue/param-value
/init-param
/filter
filter-mapping
filter-namewicket.report/filter-name
url-pattern/report/*/url-pattern
/filter-mapping
 /web-app
 
 
 Here's my portlet.xml :
 portlet-app xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd

 http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
portlet
descriptionMy Wicket portlet examples/description
portlet-nameWicketExamplesMenuApplication/portlet-name
display-namewicket examples/display-name

 portlet-classcom.example.automotive.BirtPortlet/portlet-class
init-param
namewicketFilterPath/name
value/report/value
/init-param
init-param
nameviewPage/name
value/report/view/value
/init-param
init-param
nameeditPage/name
value/report/edit/value
/init-param
supports
mime-type*/*/mime-type
portlet-modeVIEW/portlet-mode
portlet-modeEDIT/portlet-mode
/supports
supported-localeen/supported-locale
portlet-info
titleWicket Birt Portlet Examples/title
keywordsWicket/keywords
/portlet-info
/portlet
 /portlet-app
 
 And my WebApplication class:
 
 import javax.servlet.ServletContext;
 import org.apache.wicket.Page;
 import org.apache.wicket.protocol.http.WebApplication;
 
 public class Application extends WebApplication {
@Override
public Class? extends Page getHomePage()
{
return ViewReport.class;
}
@Override
protected void init()
{
mountBookmarkablePage(/view, ViewReport.class);
mountBookmarkablePage(/edit, EditReport.class);
servletContext = getWicketFilter().getFilterConfig()
.getServletContext();
}
private static ServletContext servletContext;
 }
 
 Now, when I deploy to Jetspeed I get this error in catalina.out, and I
 was not able to find any relevant exception in the logs.
 I will change the log level and dig further. but I don't know, if
 there's something wrong with the web.xml or portlet.xml ?
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: 

Re: WicketTester -- No Form onSubmit when using Ajax DropDownChoice Component

2010-01-03 Thread Martin Makundi
Hi!

AjaxFormComponentUpdatingBehavior does not submit the other form
values, only the involved component. If you want to handle other form
values you will need something like AjaxFormSubmitBehavior or
AjaxFormSubmittingChangeListenerBehavior:


public abstract class AjaxFormSubmittingChangeListenerBehavior extends
AjaxFormSubmitBehavior {
  private final static Method hiddenFieldGetter;
  static {
try {
  hiddenFieldGetter = Form.class.getDeclaredMethod(getHiddenFieldId);
  hiddenFieldGetter.setAccessible(true);
} catch (Exception e) {
  throw new RuntimeException(e);
}
  }

  /**
   * @see org.apache.wicket.ajax.AbstractDefaultAjaxBehavior#onBind()
   */
  @Override
  protected void onBind() {
super.onBind();

if (!(getComponent() instanceof IOnChangeListener))
{
  throw new WicketRuntimeException(Behavior  + getClass().getName() +
 can only be added to an instance of a IOnChangeListener);
}
  }

  /**
   * @param event
   */
  public AjaxFormSubmittingChangeListenerBehavior(String event) {
super(event);
  }

  /**
   * @see 
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior#onError(org.apache.wicket.ajax.AjaxRequestTarget)
   */
  @Override
  protected void onError(AjaxRequestTarget target) {
onSubmit(target);
  }

  /**
   * @see 
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior#onEvent(org.apache.wicket.ajax.AjaxRequestTarget)
   */
  @Override
  protected void onEvent(AjaxRequestTarget target) {
HttpServletRequest httpServletRequest = ((WebRequest) getComponent()
.getRequest()).getHttpServletRequest();

Map parameters;

if (httpServletRequest instanceof MockHttpServletRequest) {
  parameters = ((MockHttpServletRequest)
httpServletRequest).getParameterMap();
} else {
  parameters = ((org.mortbay.jetty.Request)
httpServletRequest).getParameters();
}

parameters.put(getHiddenFieldId(getForm()),
getComponent().urlFor(IOnChangeListener.INTERFACE));

final FormComponent? formComponent = (FormComponent?) getComponent();

try {
  if (isUpdateModel()) {
formComponent.inputChanged();
formComponent.validate();

if (!formComponent.hasErrorMessage()) {
  formComponent.valid();
  formComponent.updateModel();
}
  }

  super.onEvent(target);
} catch (RuntimeException e) {
  Utils.errorLog(AjaxFormSubmittingChangeListenerBehavior.class, e);
  onError(target);
}
  }

  /**
   * @return boolean
   */
  protected boolean isUpdateModel() {
return true;
  }

  /**
   * @param form
   * @return String
   */
  private String getHiddenFieldId(Form? form) {
try {
  Form? root = form.getRootForm();
  return (String) hiddenFieldGetter.invoke(root);
} catch (Exception e) {
  throw new RuntimeException(e);
}
  }
}


2010/1/4 Steve Hiller sh...@bellsouth.net:
 Hi All,

 I'm having an issue when using WicketTester with a form that has 3
 DropDownChoice component, which are linked together using the
 AjaxFormComponentUpdatingBehavior. In the following code snippet,
 selecting from the brands DropDownChoice causes the categories
 DropDownChoice to be filled. Then, selecting from the categories
 DropDownChoice causes the titles DropDownChoice to be filled.

 All of this works fine. However, the call to formTester.submit()
 does not trigger the form's onSubmit method. Any ideas what I am
 doing wrong? This is using Wicket version 1.3.7.

 Thanks,
 Steve

 --
 WicketTester tester = new WicketTester(webapp);
 tester.setupRequestAndResponse();

 FormTester formTester = tester.newFormTester(mainPanel:officeSelectorForm);
 formTester.select(brands, 0);
 tester.executeAjaxEvent(mainPanel:officeSelectorForm:brands, onchange);
 tester.assertComponentOnAjaxResponse(mainPanel:officeSelectorForm:categories);
 formTester.select(categories, 0);
 tester.executeAjaxEvent(mainPanel:officeSelectorForm:categories, 
 onchange);
 tester.assertComponentOnAjaxResponse(mainPanel:officeSelectorForm:titles);
 formTester.select(titles, 0);

 formTester.submit();
 --


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Hello World Portlet

2010-01-03 Thread Mansour Al Akeel
I checked jetspeed.log it but no luck. I was going to change the log
level to see what's going on.
 However, I decided to run my wicket pages as a web application, and
found that I was missing the binding for slf4j.
I added this to the pom and it worked:

dependency
groupIdorg.slf4j/groupId
artifactIdslf4j-log4j12/artifactId
version1.5.8/version
/dependency

I am not sure if that's what fixed the issue, or something else when I
was trying to run it as a web app.
It's working anyway.

Would it be a good idea to provide a maven archetype for wicket portlets ?


On Mon, Jan 4, 2010 at 1:42 AM, Steve Swinsburg
steve.swinsb...@gmail.com wrote:
 Hi Mansour,

 Thats just the Tomcat log, you should have a portal log that has the actual 
 exception or error that occurred?

 cheers,
 Steve


 On 04/01/2010, at 3:32 PM, Mansour Al Akeel wrote:

 Sorry, Forgot to include the error message:

 Found web.xml
 Found WEB-INF/portlet.xml
 Attempting to add portlet_2_0.tld to war...
 Adding portlet_2_0.tld to war...
 Creating war /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war ...
 War /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war created
 Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig checkResources
 INFO: Undeploying context [/reports-0.5.4]
 Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig deployWAR
 INFO: Deploying web application archive reports-0.5.4.war
 Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
 SEVERE: Error filterStart
 Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
 SEVERE: Context [/reports-0.5.4] startup failed due to previous errors




 On Mon, Jan 4, 2010 at 12:27 AM, Mansour Al Akeel
 mansour.alak...@gmail.com wrote:
 Thank you Tor:

 Here's what I have. this is copied from the web.xml from the wicket
 maven project :

 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
        xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
        version=2.4
        display-nameReports/display-name
        filter
                filter-namewicket.report/filter-name
                
 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
                init-param
                        param-nameapplicationClassName/param-name
                        
 param-valuecom.example.automotive.Application/param-value
                /init-param
                init-param
                        param-namedetectPortletContext/param-name
                        param-valuetrue/param-value
                /init-param
        /filter
        filter-mapping
                filter-namewicket.report/filter-name
                url-pattern/report/*/url-pattern
        /filter-mapping
 /web-app


 Here's my portlet.xml :
 portlet-app xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
        version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
        
 xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
                        
 http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
        portlet
                descriptionMy Wicket portlet examples/description
                portlet-nameWicketExamplesMenuApplication/portlet-name
                display-namewicket examples/display-name
                
 portlet-classcom.example.automotive.BirtPortlet/portlet-class
                init-param
                        namewicketFilterPath/name
                        value/report/value
                /init-param
                init-param
                        nameviewPage/name
                        value/report/view/value
                /init-param
                init-param
                        nameeditPage/name
                        value/report/edit/value
                /init-param
                supports
                        mime-type*/*/mime-type
                        portlet-modeVIEW/portlet-mode
                        portlet-modeEDIT/portlet-mode
                /supports
                supported-localeen/supported-locale
                portlet-info
                        titleWicket Birt Portlet Examples/title
                        keywordsWicket/keywords
                /portlet-info
        /portlet
 /portlet-app

 And my WebApplication class:

 import javax.servlet.ServletContext;
 import org.apache.wicket.Page;
 import org.apache.wicket.protocol.http.WebApplication;

 public class Application extends WebApplication {
   �...@override
    public Class? extends Page getHomePage()
    {
        return ViewReport.class;
    }
   �...@override
    protected void init()
    {
        mountBookmarkablePage(/view, ViewReport.class);
        mountBookmarkablePage(/edit, EditReport.class);
        servletContext = getWicketFilter().getFilterConfig()
                .getServletContext();
  

Re: Hello World Portlet

2010-01-03 Thread Steve Swinsburg
Absolutely that would be great. BTW I assume this is Jetspeed 2 since its 
JSR286?



On 04/01/2010, at 4:48 PM, Mansour Al Akeel wrote:

 I checked jetspeed.log it but no luck. I was going to change the log
 level to see what's going on.
 However, I decided to run my wicket pages as a web application, and
 found that I was missing the binding for slf4j.
 I added this to the pom and it worked:
 
dependency
groupIdorg.slf4j/groupId
artifactIdslf4j-log4j12/artifactId
version1.5.8/version
/dependency
 
 I am not sure if that's what fixed the issue, or something else when I
 was trying to run it as a web app.
 It's working anyway.
 
 Would it be a good idea to provide a maven archetype for wicket portlets ?
 
 
 On Mon, Jan 4, 2010 at 1:42 AM, Steve Swinsburg
 steve.swinsb...@gmail.com wrote:
 Hi Mansour,
 
 Thats just the Tomcat log, you should have a portal log that has the actual 
 exception or error that occurred?
 
 cheers,
 Steve
 
 
 On 04/01/2010, at 3:32 PM, Mansour Al Akeel wrote:
 
 Sorry, Forgot to include the error message:
 
 Found web.xml
 Found WEB-INF/portlet.xml
 Attempting to add portlet_2_0.tld to war...
 Adding portlet_2_0.tld to war...
 Creating war /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war 
 ...
 War /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war created
 Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig 
 checkResources
 INFO: Undeploying context [/reports-0.5.4]
 Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig deployWAR
 INFO: Deploying web application archive reports-0.5.4.war
 Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
 SEVERE: Error filterStart
 Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
 SEVERE: Context [/reports-0.5.4] startup failed due to previous errors
 
 
 
 
 On Mon, Jan 4, 2010 at 12:27 AM, Mansour Al Akeel
 mansour.alak...@gmail.com wrote:
 Thank you Tor:
 
 Here's what I have. this is copied from the web.xml from the wicket
 maven project :
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
display-nameReports/display-name
filter
filter-namewicket.report/filter-name

 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name

 param-valuecom.example.automotive.Application/param-value
/init-param
init-param
param-namedetectPortletContext/param-name
param-valuetrue/param-value
/init-param
/filter
filter-mapping
filter-namewicket.report/filter-name
url-pattern/report/*/url-pattern
/filter-mapping
 /web-app
 
 
 Here's my portlet.xml :
 portlet-app xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd

 http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
portlet
descriptionMy Wicket portlet examples/description
portlet-nameWicketExamplesMenuApplication/portlet-name
display-namewicket examples/display-name

 portlet-classcom.example.automotive.BirtPortlet/portlet-class
init-param
namewicketFilterPath/name
value/report/value
/init-param
init-param
nameviewPage/name
value/report/view/value
/init-param
init-param
nameeditPage/name
value/report/edit/value
/init-param
supports
mime-type*/*/mime-type
portlet-modeVIEW/portlet-mode
portlet-modeEDIT/portlet-mode
/supports
supported-localeen/supported-locale
portlet-info
titleWicket Birt Portlet Examples/title
keywordsWicket/keywords
/portlet-info
/portlet
 /portlet-app
 
 And my WebApplication class:
 
 import javax.servlet.ServletContext;
 import org.apache.wicket.Page;
 import org.apache.wicket.protocol.http.WebApplication;
 
 public class Application extends WebApplication {
@Override
public Class? extends Page getHomePage()
{
return ViewReport.class;
}
@Override
protected void init()
{
mountBookmarkablePage(/view, 

Re: Hello World Portlet

2010-01-03 Thread Mansour Al Akeel
Yes, this is JS2.2, but how where you able to tell it it's JSR286 ? 
In fact this was going to be my next step, to do interportlet
communication. 

If you work with JS, I have to tell you that wicket with JS is amazingly
col. You have all the pages you need where they sould be. I am still
new to wicket, but enjoying it already :)




On Mon Jan 04,2010 04:52 pm, Steve Swinsburg wrote:
 Absolutely that would be great. BTW I assume this is Jetspeed 2 since its 
 JSR286?
 
 
 
 On 04/01/2010, at 4:48 PM, Mansour Al Akeel wrote:
 
  I checked jetspeed.log it but no luck. I was going to change the log
  level to see what's going on.
  However, I decided to run my wicket pages as a web application, and
  found that I was missing the binding for slf4j.
  I added this to the pom and it worked:
  
 dependency
 groupIdorg.slf4j/groupId
 artifactIdslf4j-log4j12/artifactId
 version1.5.8/version
 /dependency
  
  I am not sure if that's what fixed the issue, or something else when I
  was trying to run it as a web app.
  It's working anyway.
  
  Would it be a good idea to provide a maven archetype for wicket portlets ?
  
  
  On Mon, Jan 4, 2010 at 1:42 AM, Steve Swinsburg
  steve.swinsb...@gmail.com wrote:
  Hi Mansour,
  
  Thats just the Tomcat log, you should have a portal log that has the 
  actual exception or error that occurred?
  
  cheers,
  Steve
  
  
  On 04/01/2010, at 3:32 PM, Mansour Al Akeel wrote:
  
  Sorry, Forgot to include the error message:
  
  Found web.xml
  Found WEB-INF/portlet.xml
  Attempting to add portlet_2_0.tld to war...
  Adding portlet_2_0.tld to war...
  Creating war /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war 
  ...
  War /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war created
  Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig 
  checkResources
  INFO: Undeploying context [/reports-0.5.4]
  Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig deployWAR
  INFO: Deploying web application archive reports-0.5.4.war
  Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
  SEVERE: Error filterStart
  Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
  SEVERE: Context [/reports-0.5.4] startup failed due to previous errors
  
  
  
  
  On Mon, Jan 4, 2010 at 12:27 AM, Mansour Al Akeel
  mansour.alak...@gmail.com wrote:
  Thank you Tor:
  
  Here's what I have. this is copied from the web.xml from the wicket
  maven project :
  
  web-app xmlns=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
 display-nameReports/display-name
 filter
 filter-namewicket.report/filter-name
 
  filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
 init-param
 param-nameapplicationClassName/param-name
 
  param-valuecom.example.automotive.Application/param-value
 /init-param
 init-param
 param-namedetectPortletContext/param-name
 param-valuetrue/param-value
 /init-param
 /filter
 filter-mapping
 filter-namewicket.report/filter-name
 url-pattern/report/*/url-pattern
 /filter-mapping
  /web-app
  
  
  Here's my portlet.xml :
  portlet-app 
  xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
 version=1.0 
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 
  xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
 
  http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
 portlet
 descriptionMy Wicket portlet examples/description
 portlet-nameWicketExamplesMenuApplication/portlet-name
 display-namewicket examples/display-name
 
  portlet-classcom.example.automotive.BirtPortlet/portlet-class
 init-param
 namewicketFilterPath/name
 value/report/value
 /init-param
 init-param
 nameviewPage/name
 value/report/view/value
 /init-param
 init-param
 nameeditPage/name
 value/report/edit/value
 /init-param
 supports
 mime-type*/*/mime-type
 portlet-modeVIEW/portlet-mode
 portlet-modeEDIT/portlet-mode
 /supports
 supported-localeen/supported-locale
 portlet-info
 titleWicket Birt Portlet 

Integrating Hibernate Validator with Wicket

2010-01-03 Thread ayman elwany
Hi,

Is there any common practice to integrate wicket with hibernate validator ?


Re: Integrating Hibernate Validator with Wicket

2010-01-03 Thread Martin Makundi
http://42lines.net/content/integrating-hibernate-validator-and-wicket

2010/1/4 ayman elwany aymanelw...@gmail.com:
 Hi,

 Is there any common practice to integrate wicket with hibernate validator ?


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Hello World Portlet

2010-01-03 Thread Steve Swinsburg
You said in your first post it was JSR286 and Jetspeed 2 implements that spec, 
whereas Jetspeed 1 is JSR-168.

I am glad you have Wicket based portlets working in a JSR-286 container, shame 
the same can't be said for a JSR-168 container, ie Pluto :(

cheers,
Steve




On 04/01/2010, at 5:17 PM, Mansour Al Akeel wrote:

 Yes, this is JS2.2, but how where you able to tell it it's JSR286 ? 
 In fact this was going to be my next step, to do interportlet
 communication. 
 
 If you work with JS, I have to tell you that wicket with JS is amazingly
 col. You have all the pages you need where they sould be. I am still
 new to wicket, but enjoying it already :)
 
 
 
 
 On Mon Jan 04,2010 04:52 pm, Steve Swinsburg wrote:
 Absolutely that would be great. BTW I assume this is Jetspeed 2 since its 
 JSR286?
 
 
 
 On 04/01/2010, at 4:48 PM, Mansour Al Akeel wrote:
 
 I checked jetspeed.log it but no luck. I was going to change the log
 level to see what's going on.
 However, I decided to run my wicket pages as a web application, and
 found that I was missing the binding for slf4j.
 I added this to the pom and it worked:
 
   dependency
   groupIdorg.slf4j/groupId
   artifactIdslf4j-log4j12/artifactId
   version1.5.8/version
   /dependency
 
 I am not sure if that's what fixed the issue, or something else when I
 was trying to run it as a web app.
 It's working anyway.
 
 Would it be a good idea to provide a maven archetype for wicket portlets ?
 
 
 On Mon, Jan 4, 2010 at 1:42 AM, Steve Swinsburg
 steve.swinsb...@gmail.com wrote:
 Hi Mansour,
 
 Thats just the Tomcat log, you should have a portal log that has the 
 actual exception or error that occurred?
 
 cheers,
 Steve
 
 
 On 04/01/2010, at 3:32 PM, Mansour Al Akeel wrote:
 
 Sorry, Forgot to include the error message:
 
 Found web.xml
 Found WEB-INF/portlet.xml
 Attempting to add portlet_2_0.tld to war...
 Adding portlet_2_0.tld to war...
 Creating war /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war 
 ...
 War /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war created
 Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig 
 checkResources
 INFO: Undeploying context [/reports-0.5.4]
 Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig deployWAR
 INFO: Deploying web application archive reports-0.5.4.war
 Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
 SEVERE: Error filterStart
 Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
 SEVERE: Context [/reports-0.5.4] startup failed due to previous errors
 
 
 
 
 On Mon, Jan 4, 2010 at 12:27 AM, Mansour Al Akeel
 mansour.alak...@gmail.com wrote:
 Thank you Tor:
 
 Here's what I have. this is copied from the web.xml from the wicket
 maven project :
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
   version=2.4
   display-nameReports/display-name
   filter
   filter-namewicket.report/filter-name
   
 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
   init-param
   param-nameapplicationClassName/param-name
   
 param-valuecom.example.automotive.Application/param-value
   /init-param
   init-param
   param-namedetectPortletContext/param-name
   param-valuetrue/param-value
   /init-param
   /filter
   filter-mapping
   filter-namewicket.report/filter-name
   url-pattern/report/*/url-pattern
   /filter-mapping
 /web-app
 
 
 Here's my portlet.xml :
 portlet-app 
 xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
   version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   
 xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
   
 http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
   portlet
   descriptionMy Wicket portlet examples/description
   portlet-nameWicketExamplesMenuApplication/portlet-name
   display-namewicket examples/display-name
   
 portlet-classcom.example.automotive.BirtPortlet/portlet-class
   init-param
   namewicketFilterPath/name
   value/report/value
   /init-param
   init-param
   nameviewPage/name
   value/report/view/value
   /init-param
   init-param
   nameeditPage/name
   value/report/edit/value
   /init-param
   supports
   mime-type*/*/mime-type
   portlet-modeVIEW/portlet-mode
   portlet-modeEDIT/portlet-mode

Re: Hello World Portlet

2010-01-03 Thread Mansour Al Akeel
I totally forgot I mentioned JSR 286.
Thank you. 



On Mon Jan 04,2010 05:47 pm, Steve Swinsburg wrote:
 You said in your first post it was JSR286 and Jetspeed 2 implements that 
 spec, whereas Jetspeed 1 is JSR-168.
 
 I am glad you have Wicket based portlets working in a JSR-286 container, 
 shame the same can't be said for a JSR-168 container, ie Pluto :(
 
 cheers,
 Steve
 
 
 
 
 On 04/01/2010, at 5:17 PM, Mansour Al Akeel wrote:
 
  Yes, this is JS2.2, but how where you able to tell it it's JSR286 ? 
  In fact this was going to be my next step, to do interportlet
  communication. 
  
  If you work with JS, I have to tell you that wicket with JS is amazingly
  col. You have all the pages you need where they sould be. I am still
  new to wicket, but enjoying it already :)
  
  
  
  
  On Mon Jan 04,2010 04:52 pm, Steve Swinsburg wrote:
  Absolutely that would be great. BTW I assume this is Jetspeed 2 since its 
  JSR286?
  
  
  
  On 04/01/2010, at 4:48 PM, Mansour Al Akeel wrote:
  
  I checked jetspeed.log it but no luck. I was going to change the log
  level to see what's going on.
  However, I decided to run my wicket pages as a web application, and
  found that I was missing the binding for slf4j.
  I added this to the pom and it worked:
  
dependency
groupIdorg.slf4j/groupId
artifactIdslf4j-log4j12/artifactId
version1.5.8/version
/dependency
  
  I am not sure if that's what fixed the issue, or something else when I
  was trying to run it as a web app.
  It's working anyway.
  
  Would it be a good idea to provide a maven archetype for wicket portlets ?
  
  
  On Mon, Jan 4, 2010 at 1:42 AM, Steve Swinsburg
  steve.swinsb...@gmail.com wrote:
  Hi Mansour,
  
  Thats just the Tomcat log, you should have a portal log that has the 
  actual exception or error that occurred?
  
  cheers,
  Steve
  
  
  On 04/01/2010, at 3:32 PM, Mansour Al Akeel wrote:
  
  Sorry, Forgot to include the error message:
  
  Found web.xml
  Found WEB-INF/portlet.xml
  Attempting to add portlet_2_0.tld to war...
  Adding portlet_2_0.tld to war...
  Creating war 
  /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war ...
  War /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war created
  Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig 
  checkResources
  INFO: Undeploying context [/reports-0.5.4]
  Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig deployWAR
  INFO: Deploying web application archive reports-0.5.4.war
  Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
  SEVERE: Error filterStart
  Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start
  SEVERE: Context [/reports-0.5.4] startup failed due to previous errors
  
  
  
  
  On Mon, Jan 4, 2010 at 12:27 AM, Mansour Al Akeel
  mansour.alak...@gmail.com wrote:
  Thank you Tor:
  
  Here's what I have. this is copied from the web.xml from the wicket
  maven project :
  
  web-app xmlns=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
display-nameReports/display-name
filter
filter-namewicket.report/filter-name

  filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name

  param-valuecom.example.automotive.Application/param-value
/init-param
init-param
param-namedetectPortletContext/param-name
param-valuetrue/param-value
/init-param
/filter
filter-mapping
filter-namewicket.report/filter-name
url-pattern/report/*/url-pattern
/filter-mapping
  /web-app
  
  
  Here's my portlet.xml :
  portlet-app 
  xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
version=1.0 
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

  xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd

  http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
portlet
descriptionMy Wicket portlet examples/description

  portlet-nameWicketExamplesMenuApplication/portlet-name
display-namewicket examples/display-name

  portlet-classcom.example.automotive.BirtPortlet/portlet-class
init-param
namewicketFilterPath/name
value/report/value
/init-param
init-param
nameviewPage/name
value/report/view/value
/init-param
init-param