Re: wicket, hibernate, spring setup

2011-08-08 Thread msj121
jWeekend no longer seems to have a wicket/hibernate/spring archetype.

SOLVED:
I had a lot of trouble using eclipse, but simply I did the following from
the command line:
"mvn archertype:generate"
and then went through the steps of choosing groupid etc


after all my attempts the archetype was in this list but not eclipse no
matter what I was doing. You may need to switch to the directory and run
"mvn package install" if you don't see it populated in the list.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-hibernate-spring-setup-tp3728444p3729072.html
Sent from the Users forum 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: custom (non wicket) modal dialog. Problem with urls.

2011-08-08 Thread brazz
Hi, 

thank you very much for your answer. It's correct till number 3.
The link in the modal dialog has to be a resourcelink, which loads a pdf
document from the server. I cannot use an external link because there is a
firewall between user and document server (therefore i have to open an
http-connection on the server). My problem is that neither the getData()
method of the ResourceState nor the onclick() method of the link gets called
because the response page ist the page in the background and not the page in
the modal dialog where the links reside . Here's the code for my link. I
have tested it and it works outside of the modal dialog, no problem with
that. So i think the problem is really that i don't get callback messages
from wicket in my links because the page with the links is not the response
page. 


private ResourceLink createResourceLink(
final Link serviceInfoLink, String labelId, String 
linkId) {
final ASPDynamicResource resource = new
ASPDynamicResource(URLUtil.extractFileName(serviceInfoLink.getUrl())){
private static final long serialVersionUID = 1L;

@Override
public String getContentType() {
return "application/pdf";
};

@Override
public String getUrl() {
return serviceInfoLink.getUrl();
};

};
ResourceLink resourceLink = new 
ResourceLink(linkId, resource)
{
@Override
public void onClick() {
if(resource.isResourceAvailable()){
log.error("Resource with name: " + 
serviceInfoLink.getUrl()  + "is not
available");
}
super.onClick();
}
private static final long serialVersionUID = 
192187593624907520L;

};
resourceLink.add(new Label(labelId, serviceInfoLink.getName()));
return resourceLink;
}

public abstract class ASPDynamicResource extends DynamicWebResource {

private static final long serialVersionUID = -4500556464921243755L;

private Log log = LogFactory.getLog(ASPDynamicResource.class);

public ASPDynamicResource(String id){
super(id);
}

@Override
protected ResourceState getResourceState() {
return new ASPResourceState();
}

private class ASPResourceState extends ResourceState {
   
public String getContentType() {
return ASPDynamicResource.this.getContentType();
}
   
public byte[] getData() {
URLReader urlReader = URLReader.newInstance();
try {
return 
urlReader.getBytes(urlReader.webProxyUrl(getUrl()));
} catch (MalformedURLException e) {
log.error(e);
} catch (Exception e) {
log.error(e);
}
return null;
}
}

public boolean isResourceAvailable() {
URLTester urlTester = URLTester.newInstance();
try {
return 
urlTester.isReachable(urlTester.webProxyUrl(getUrl()));
} catch (MalformedURLException e) {
log.error(e);
return false;
} catch (Exception e) {
log.error(e);
return false;
}
}

public abstract String getUrl();

public abstract String getContentType();

}

public abstract class ASPDynamicResource extends DynamicWebResource {

private static final long serialVersionUID = -4500556464921243755L;

private Log log = LogFactory.getLog(ASPDynamicResource.class);

public ASPDynamicResource(String id){
super(id);
}

@Override
protected ResourceState getResourceState() {
return new ASPResourceState();
}

private class ASPResourceState extends ResourceState {
   
public String getContentType() {
return ASPDynamicResource.this.getContentType();
}
   
public byte[] getData() {
URLReader urlReader = URLReader.newInstance();
try {
return 
urlReader.getBytes(urlReader.webProxyUrl(getUrl()));
} catch (MalformedURLException 

Re: wicket, hibernate, spring setup

2011-08-08 Thread jcgarciam
Try jWeekend LegUp

http://www.jweekend.com/dev/LegUp

On Mon, Aug 8, 2011 at 7:15 PM, msj121 [via Apache Wicket] <
ml-node+3728444-1358850638-65...@n4.nabble.com> wrote:

> I noticed there was a github setup here:
> https://github.com/pflanzenmoerder/wicket-hibernate-archetype
>
> And I added the repository and imported the project into my eclipse helios.
> I can't seem to get the project to run, not sure how to finish setting up
> the project.
>
> Can anyone help?
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/wicket-hibernate-spring-setup-tp3728444p3728444.html
>  To start a new topic under Apache Wicket, email
> ml-node+1842946-398011874-65...@n4.nabble.com
> To unsubscribe from Apache Wicket, click 
> here.
>
>



-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-hibernate-spring-setup-tp3728444p3728572.html
Sent from the Users forum 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, hibernate, spring setup

2011-08-08 Thread msj121
I noticed there was a github setup here:
https://github.com/pflanzenmoerder/wicket-hibernate-archetype

And I added the repository and imported the project into my eclipse helios.
I can't seem to get the project to run, not sure how to finish setting up
the project.

Can anyone help?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-hibernate-spring-setup-tp3728444p3728444.html
Sent from the Users forum 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: Wicket filter chain and other servlets

2011-08-08 Thread Dan Retzlaff
You should just be able to see where that TrustedHostMgr variable is coming
from.

On Mon, Aug 8, 2011 at 1:39 PM, Julian Sinai  wrote:

> Dan, thanks for your reply. You may be right, though I can't imagine what
> could be putting the proxy somewhere the servlet can access it. I'll take
> another look. And your suggestion to put a breakpoint in the
> SpringComponentInjector is a good one.
>
> Julian
> On Mon, Aug 8, 2011 at 12:49 PM, Dan Retzlaff  wrote:
>
> > On second thought, both instantiating a Component and requesting
> injection
> > would blow up immediately without an Application set. So I have to think
> > something in your Wicket application is putting the proxy somewhere the
> > servlet can access it.
> >
> >
>


Re: Wicket filter chain and other servlets

2011-08-08 Thread Julian Sinai
Dan, thanks for your reply. You may be right, though I can't imagine what
could be putting the proxy somewhere the servlet can access it. I'll take
another look. And your suggestion to put a breakpoint in the
SpringComponentInjector is a good one.

Julian
On Mon, Aug 8, 2011 at 12:49 PM, Dan Retzlaff  wrote:

> On second thought, both instantiating a Component and requesting injection
> would blow up immediately without an Application set. So I have to think
> something in your Wicket application is putting the proxy somewhere the
> servlet can access it.
>
>


Re: Model window issue

2011-08-08 Thread Archana
In my application both the model windows are pretty much of same size. So
when one model window opens on the other one, it looks very odd. for that
reason I need to some how make the underneath model window inactive or
hidden, so that it will not look odd. I can not close the Model window 1 as
it is the parent one. If I close it the child i.e. Model window 2 will not
open.

Please give me some suggestions on this. 

-
Thanks & Regards,
Archana
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-window-issue-tp3727688p3728161.html
Sent from the Users forum 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: Wicket filter chain and other servlets

2011-08-08 Thread Dan Retzlaff
On second thought, both instantiating a Component and requesting injection
would blow up immediately without an Application set. So I have to think
something in your Wicket application is putting the proxy somewhere the
servlet can access it.

On Mon, Aug 8, 2011 at 12:46 PM, Dan Retzlaff  wrote:

> If Wicket doesn't have a mount for a given URL, the WicketFilter doesn't do
> anything more than pass the request through as if it weren't even there. So
> I don't think your problem is filter configuration.
>
> Your non-Wicket servlet is probably instantiating a Wicket component or
> using InjectorHolder.getInjector().inject() in your other servlet. I would
> breakpoint the SpringComponentInject.inject() method to see how it's getting
> called for non-Wicket requests. (Or maybe at startup.)
>
>
> On Mon, Aug 8, 2011 at 12:29 PM, Julian Sinai  wrote:
>
>> Hi Dan
>>
>> I don't understand the reason either, but clearly it's happening. My best
>> guess is what I said in my original post: the non-wicket servlets are
>> going
>> through the wicket filter.
>> Julian
>> On Mon, Aug 8, 2011 at 12:23 PM, Dan Retzlaff 
>> wrote:
>>
>> > Hi Julian,
>> >
>> > I'm not quite understanding your setup. How did your non-Wicket servlet
>> get
>> > a Wicket-proxied Spring bean?
>> >
>> > Dan
>> >
>> >
>> > On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai  wrote:
>> >
>> >> Hi, I really could use some advice on how to solve this problem:
>> >>
>> >> In our webapp, we have a wicket filter as well as a couple of other
>> >> servlets. The url pattern for the wicket filter is the usual /*. The
>> >> problem
>> >> is that because of this, all urls, including those of the other
>> servlets,
>> >> go
>> >> through the wicket filter, which is causing problems. Specifically, we
>> are
>> >> using  spring, so wicket's SpringComponentInjector wraps the beans,
>> which
>> >> sometimes results in the exception below.
>> >>
>> >> The real solution is to separate the other servlets into another
>> webapp,
>> >> but
>> >> because of time constraints we can't do that. We also can't easily
>> change
>> >> our urls to assign a unique pattern to the wicket urls (although the
>> other
>> >> servlets do have unique patterns), because it will adversely affect
>> users.
>> >> Is there a way to solve this problem in web.xml? Use wicket servlet
>> >> instead
>> >> of wicket filter?
>> >>
>> >> org.apache.wicket.WicketRuntimeException: There is no application
>> attached
>> >> to
>> >> current thread http-8443-7
>> >>at org.apache.wicket.Application.get(Application.java:179)
>> >>
>> >> ...
>> >>
>> >>
>> >>at
>> >>
>> >>
>> WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy()
>> >>
>> >> ...
>> >>
>> >>
>> >>at
>> >>
>> >>
>> com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)
>> >>
>> >>
>> >> Any help is appreciated.
>> >> Julian
>> >>
>> >
>> >
>>
>
>


Re: Wicket filter chain and other servlets

2011-08-08 Thread Dan Retzlaff
If Wicket doesn't have a mount for a given URL, the WicketFilter doesn't do
anything more than pass the request through as if it weren't even there. So
I don't think your problem is filter configuration.

Your non-Wicket servlet is probably instantiating a Wicket component or
using InjectorHolder.getInjector().inject() in your other servlet. I would
breakpoint the SpringComponentInject.inject() method to see how it's getting
called for non-Wicket requests. (Or maybe at startup.)

On Mon, Aug 8, 2011 at 12:29 PM, Julian Sinai  wrote:

> Hi Dan
>
> I don't understand the reason either, but clearly it's happening. My best
> guess is what I said in my original post: the non-wicket servlets are going
> through the wicket filter.
> Julian
> On Mon, Aug 8, 2011 at 12:23 PM, Dan Retzlaff  wrote:
>
> > Hi Julian,
> >
> > I'm not quite understanding your setup. How did your non-Wicket servlet
> get
> > a Wicket-proxied Spring bean?
> >
> > Dan
> >
> >
> > On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai  wrote:
> >
> >> Hi, I really could use some advice on how to solve this problem:
> >>
> >> In our webapp, we have a wicket filter as well as a couple of other
> >> servlets. The url pattern for the wicket filter is the usual /*. The
> >> problem
> >> is that because of this, all urls, including those of the other
> servlets,
> >> go
> >> through the wicket filter, which is causing problems. Specifically, we
> are
> >> using  spring, so wicket's SpringComponentInjector wraps the beans,
> which
> >> sometimes results in the exception below.
> >>
> >> The real solution is to separate the other servlets into another webapp,
> >> but
> >> because of time constraints we can't do that. We also can't easily
> change
> >> our urls to assign a unique pattern to the wicket urls (although the
> other
> >> servlets do have unique patterns), because it will adversely affect
> users.
> >> Is there a way to solve this problem in web.xml? Use wicket servlet
> >> instead
> >> of wicket filter?
> >>
> >> org.apache.wicket.WicketRuntimeException: There is no application
> attached
> >> to
> >> current thread http-8443-7
> >>at org.apache.wicket.Application.get(Application.java:179)
> >>
> >> ...
> >>
> >>
> >>at
> >>
> >>
> WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy()
> >>
> >> ...
> >>
> >>
> >>at
> >>
> >>
> com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)
> >>
> >>
> >> Any help is appreciated.
> >> Julian
> >>
> >
> >
>


Re: Wicket filter chain and other servlets

2011-08-08 Thread Martin Funk
the web.xml might help

Am 08.08.2011 um 21:29 schrieb Julian Sinai:

> Hi Dan
> 
> I don't understand the reason either, but clearly it's happening. My best
> guess is what I said in my original post: the non-wicket servlets are going
> through the wicket filter.
> Julian
> On Mon, Aug 8, 2011 at 12:23 PM, Dan Retzlaff  wrote:
> 
>> Hi Julian,
>> 
>> I'm not quite understanding your setup. How did your non-Wicket servlet get
>> a Wicket-proxied Spring bean?
>> 
>> Dan
>> 
>> 
>> On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai  wrote:
>> 
>>> Hi, I really could use some advice on how to solve this problem:
>>> 
>>> In our webapp, we have a wicket filter as well as a couple of other
>>> servlets. The url pattern for the wicket filter is the usual /*. The
>>> problem
>>> is that because of this, all urls, including those of the other servlets,
>>> go
>>> through the wicket filter, which is causing problems. Specifically, we are
>>> using  spring, so wicket's SpringComponentInjector wraps the beans, which
>>> sometimes results in the exception below.
>>> 
>>> The real solution is to separate the other servlets into another webapp,
>>> but
>>> because of time constraints we can't do that. We also can't easily change
>>> our urls to assign a unique pattern to the wicket urls (although the other
>>> servlets do have unique patterns), because it will adversely affect users.
>>> Is there a way to solve this problem in web.xml? Use wicket servlet
>>> instead
>>> of wicket filter?
>>> 
>>> org.apache.wicket.WicketRuntimeException: There is no application attached
>>> to
>>> current thread http-8443-7
>>>   at org.apache.wicket.Application.get(Application.java:179)
>>> 
>>> ...
>>> 
>>> 
>>>   at
>>> 
>>> WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy()
>>> 
>>> ...
>>> 
>>> 
>>>   at
>>> 
>>> com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)
>>> 
>>> 
>>> Any help is appreciated.
>>> Julian
>>> 
>> 
>> 


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



Re: Wicket filter chain and other servlets

2011-08-08 Thread Julian Sinai
Hi Dan

I don't understand the reason either, but clearly it's happening. My best
guess is what I said in my original post: the non-wicket servlets are going
through the wicket filter.
Julian
On Mon, Aug 8, 2011 at 12:23 PM, Dan Retzlaff  wrote:

> Hi Julian,
>
> I'm not quite understanding your setup. How did your non-Wicket servlet get
> a Wicket-proxied Spring bean?
>
> Dan
>
>
> On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai  wrote:
>
>> Hi, I really could use some advice on how to solve this problem:
>>
>> In our webapp, we have a wicket filter as well as a couple of other
>> servlets. The url pattern for the wicket filter is the usual /*. The
>> problem
>> is that because of this, all urls, including those of the other servlets,
>> go
>> through the wicket filter, which is causing problems. Specifically, we are
>> using  spring, so wicket's SpringComponentInjector wraps the beans, which
>> sometimes results in the exception below.
>>
>> The real solution is to separate the other servlets into another webapp,
>> but
>> because of time constraints we can't do that. We also can't easily change
>> our urls to assign a unique pattern to the wicket urls (although the other
>> servlets do have unique patterns), because it will adversely affect users.
>> Is there a way to solve this problem in web.xml? Use wicket servlet
>> instead
>> of wicket filter?
>>
>> org.apache.wicket.WicketRuntimeException: There is no application attached
>> to
>> current thread http-8443-7
>>at org.apache.wicket.Application.get(Application.java:179)
>>
>> ...
>>
>>
>>at
>>
>> WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy()
>>
>> ...
>>
>>
>>at
>>
>> com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)
>>
>>
>> Any help is appreciated.
>> Julian
>>
>
>


Re: Model window issue

2011-08-08 Thread rmattler
I do this in my app.  I open a modal window and when you hit save I open
another modal window to confirm your save and if you confirm I close both
modal windows.

modalConfirm.close(target);
modalSelectDate.close(target);


IndicatingAjaxLink btnConfirmSave = new
IndicatingAjaxLink("btnConfirmSave") {

@Override
protected IAjaxCallDecorator 
getAjaxCallDecorator() {
return new
AjaxPostprocessingCallDecorator(super.getAjaxCallDecorator()) {
private static final long 
serialVersionUID = 1L;

@Override
public CharSequence 
postDecorateScript(CharSequence script) {
return script + 
"this.disabled = true; this.style.display =
\"none\";";
}

@Override
public CharSequence 
postDecorateOnSuccessScript(CharSequence script) {
return script + " 
this.disabled = false;";
}
};
}

@Override
public void onClick(AjaxRequestTarget target) {
if (target != null) {


for (Positions position : 
positions) {

position.setVolunteersByFkVolunteerScheduled(session.getVolunteers());

positionsDAO.save(position);
}

//  wmc.setVisible(false);
target.addComponent(wmc);
modalConfirm.close(target);
modalSelectDate.close(target);


}

}

};

btnConfirmSave.setOutputMarkupId(true);
btnConfirmSave.setMarkupId("buttonConfirmOK");
add(btnConfirmSave);

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-window-issue-tp3727688p3727987.html
Sent from the Users forum 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: Wicket filter chain and other servlets

2011-08-08 Thread Dan Retzlaff
Hi Julian,

I'm not quite understanding your setup. How did your non-Wicket servlet get
a Wicket-proxied Spring bean?

Dan

On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai  wrote:

> Hi, I really could use some advice on how to solve this problem:
>
> In our webapp, we have a wicket filter as well as a couple of other
> servlets. The url pattern for the wicket filter is the usual /*. The
> problem
> is that because of this, all urls, including those of the other servlets,
> go
> through the wicket filter, which is causing problems. Specifically, we are
> using  spring, so wicket's SpringComponentInjector wraps the beans, which
> sometimes results in the exception below.
>
> The real solution is to separate the other servlets into another webapp,
> but
> because of time constraints we can't do that. We also can't easily change
> our urls to assign a unique pattern to the wicket urls (although the other
> servlets do have unique patterns), because it will adversely affect users.
> Is there a way to solve this problem in web.xml? Use wicket servlet instead
> of wicket filter?
>
> org.apache.wicket.WicketRuntimeException: There is no application attached
> to
> current thread http-8443-7
>at org.apache.wicket.Application.get(Application.java:179)
>
> ...
>
>
>at
>
> WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy()
>
> ...
>
>
>at
>
> com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)
>
>
> Any help is appreciated.
> Julian
>


Wicket filter chain and other servlets

2011-08-08 Thread Julian Sinai
Hi, I really could use some advice on how to solve this problem:

In our webapp, we have a wicket filter as well as a couple of other
servlets. The url pattern for the wicket filter is the usual /*. The problem
is that because of this, all urls, including those of the other servlets, go
through the wicket filter, which is causing problems. Specifically, we are
using  spring, so wicket's SpringComponentInjector wraps the beans, which
sometimes results in the exception below.

The real solution is to separate the other servlets into another webapp, but
because of time constraints we can't do that. We also can't easily change
our urls to assign a unique pattern to the wicket urls (although the other
servlets do have unique patterns), because it will adversely affect users.
Is there a way to solve this problem in web.xml? Use wicket servlet instead
of wicket filter?

org.apache.wicket.WicketRuntimeException: There is no application attached to
current thread http-8443-7
at org.apache.wicket.Application.get(Application.java:179)

...


at
WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy()

...


at
com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)


Any help is appreciated.
Julian


Re: PopUp not refreshed while everything else is

2011-08-08 Thread Dawid Dudzinski
FYI. I resorted to passing a raw JQuery to the front end and now it works.

I append JS to target similar to this: "$("#imgtagname").attr("src",
"/path"); Of course imgtagname is dynamically constructed
[getMarkupId()]

However if anyone has solution to my problem or even suggestion I
would welcome any leads.

Thanks,
Dawid

On Mon, Aug 8, 2011 at 11:02 AM, Dawid Dudzinski  wrote:
> Hello,
>
> I'm having a strange problem: In a fairly complex application I
> refresh image on main page and need to pop up a dialog
> [org.odlabs.wiquery.ui.dialog.Dialog] with another image.
>
> Main page image updates without issues, dialog opens
> [dialog.open(target);] but the image reference is broken. This is
> really strange because when I reviewed Wicket Ajax Debug i can see the
> proper image reference passed to the front end. There are no errors in
> the debug window.
>
> Could anyone shed some light why I would have such problems?
>
> To add more to this mystery I have Next and Previous button on the
> same pop up and when I click on them I can navigate to the image I'm
> trying to open automatically.
>
> Thanks,
> Dawid
>

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



Model window issue

2011-08-08 Thread Archana
Hi All,

I need some help regarding the model window. 

My web page contains some components. On click of a icon a model window 1
opens. Model window 1 extends a panel. Model window 1 has a "create" button,
on click of which another model window i.e. the Model window 2 opens. On
open of Model window 2, I want to hide the Model window 1 or make it
inactive so that it will not be selected.

Can I do that any way. I have tried to close() and setVisible() for the
Model window 1. It did not work.

Thanks in advance.

-
Thanks & Regards,
Archana
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-window-issue-tp3727688p3727688.html
Sent from the Users forum 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: Stateless pagination

2011-08-08 Thread Vytautas

true, it's not 100% stateless :)removing configurable items per page would make 
it stateless.


On 08/08/2011 07:01 PM, jcgarciam wrote:

Just for the record, using HttpSession makes your application already
stateful as well.

On Mon, Aug 8, 2011 at 10:21 AM, Vytautas Racelis-2 [via Apache Wicket]<
ml-node+3726961-1182509707-65...@n4.nabble.com>  wrote:


Hi,
  I guess you might be interested in this:


https://xaloon.googlecode.com/svn/trunk/xaloon-wicket/xaloon-wicket-components/src/main/java/org/xaloon/wicket/component/navigation/BookmarkablePagingNavigator.java

it's a bookmarkable navigator example with abitility to change items per
page and it is stateless.


On Mon, Aug 8, 2011 at 4:16 PM, heikki<[hidden 
email]>
wrote:


hello,

I've noticed that rather many Wicket components cause the page to become
stateful, something which I wish to avoid.

In particular I'm wondering if there is some way to use the Pagination*
components (or similar alternative ones) to create a page that has
pagination over a repeater, without making the page stateful.

Sure, I suppose some info about the collection and current page etc. must



be
remembered on the server, but we still have good old HttpSession that

could

maybe be used for it ?

Any hints appreciated !

thanks and kind regards
Heikki Doeleman

--
View this message in context:


http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726950.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [hidden 
email]
For additional commands, e-mail: [hidden 
email]





--
Best regards,
Vytautas R.
---
www.xaloon.org
www.allcarindex.com


--
  If you reply to this email, your message will be added to the discussion
below:

http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726961.html
  To start a new topic under Apache Wicket, email
ml-node+1842946-398011874-65...@n4.nabble.com
To unsubscribe from Apache Wicket, click 
here.








--
Regards,
Vytautas
---
www.xaloon.org
www.allcarindex.com

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



Re: custom (non wicket) modal dialog. Problem with urls.

2011-08-08 Thread Andrea Del Bene

Hi,

I'm not sure I have fully understood your situation. You should have:

1- a page which opens a modal dialog via Javascript
2- another page which is rendered inside modal dialog
3- in this last page (the one inside modal window) you want a link to 
the page in background (the starting page)


Is this right?

Couldn't you get the url of target page using the same code used for 
modal dialog page? i.e.:


comp.urlFor(TargetPageClass.class, params);



Hello everyone,

in our project i have to use our own modal dialog (application is included
in a portal). I have to open the dialog with the help of a javascript
function which is wrapped in a Behaviour. What i am doing now:

- in the constructor of my response page i call the javascript function via
a behaviour, so that immediately after the responsepage is rendered, the
javascript function gets called and the modal dialog opens.
- the javascript funtion accepts a url of the page that will be included in
the dialog.

In order to get the url i'm doing the this:

URL for Page in Modal Dialog:
ServletWebRequest servletWebRequest = (ServletWebRequest) comp
.getRequest();
HttpServletRequest request = 
servletWebRequest.getHttpServletRequest();
String path = Strings.stripJSessionId(request.getRequestURI());
CharSequence urlFor = comp.urlFor(targetPageClass, params);
String contextRelativePath = path + urlFor;


Behaviour for opening the Modal Dialog:

public class OpenModalDialogBehaviour extends AbstractDefaultAjaxBehavior {

private static final long serialVersionUID = -127624955452459934L;

private String url;

public OpenModalDialogBehaviour(String url) {
this.url = url;
}

@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
ASPSession session = (ASPSession) ASPSession.get();
String js = "{if(" + session.isShowModalDialog() + 
"){top.showForm('"
+ url + " + ');}}";
tag.append("onload", js , " ");
session.setShowModalDialog(false);
}

@Override
protected void respond(AjaxRequestTarget target) {
System.out.println("respond");
}
}

Now, my problem is, that the response page is the page in the background
(deactivated by the modal-dialog-javascript- function), not the page of the
modal dialog. Therefore the links in the page of my modal dialog are dead
(the onclick functions never get called).

What i need is some trick to calculate and set the urls for my modal dialog
page manually, but i have no clue how to do this. Or maybe there is a much
simpler solution?

Thanks for any suggestions!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/custom-non-wicket-modal-dialog-Problem-with-urls-tp3726196p3726196.html
Sent from the Users forum 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






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



Re: How can i toggle panel visibility without javascript?

2011-08-08 Thread jcgarciam
Try using the Swap Panel technique, here is an example using Fragments

http://pawelzubkiewicz.blogspot.com/2009/06/wicket-swapping-replacing-fragments.html


On Mon, Aug 8, 2011 at 10:39 AM, Mike Mander [via Apache Wicket] <
ml-node+3727006-1582440175-65...@n4.nabble.com> wrote:

> Hi,
>
> i have two adress panels. Invoice and shipping. Shipping is off by default.
>
> I would like to add a button or something to my invoice panel which is
> toggling the visibility of the shipping panel.
>
> I tried to add a page parameter to my current site and redirect, but the
> added parameter is not present.
>
> Do i have other options?
>
> Thanks
> Mike
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/How-can-i-toggle-panel-visibility-without-javascript-tp3727006p3727006.html
>  To start a new topic under Apache Wicket, email
> ml-node+1842946-398011874-65...@n4.nabble.com
> To unsubscribe from Apache Wicket, click 
> here.
>
>



-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-can-i-toggle-panel-visibility-without-javascript-tp3727006p3727441.html
Sent from the Users forum 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: Stateless pagination

2011-08-08 Thread jcgarciam
Just for the record, using HttpSession makes your application already
stateful as well.

On Mon, Aug 8, 2011 at 10:21 AM, Vytautas Racelis-2 [via Apache Wicket] <
ml-node+3726961-1182509707-65...@n4.nabble.com> wrote:

> Hi,
>  I guess you might be interested in this:
>
>
> https://xaloon.googlecode.com/svn/trunk/xaloon-wicket/xaloon-wicket-components/src/main/java/org/xaloon/wicket/component/navigation/BookmarkablePagingNavigator.java
>
> it's a bookmarkable navigator example with abitility to change items per
> page and it is stateless.
>
>
> On Mon, Aug 8, 2011 at 4:16 PM, heikki <[hidden 
> email]>
> wrote:
>
> > hello,
> >
> > I've noticed that rather many Wicket components cause the page to become
> > stateful, something which I wish to avoid.
> >
> > In particular I'm wondering if there is some way to use the Pagination*
> > components (or similar alternative ones) to create a page that has
> > pagination over a repeater, without making the page stateful.
> >
> > Sure, I suppose some info about the collection and current page etc. must
>
> > be
> > remembered on the server, but we still have good old HttpSession that
> could
> > maybe be used for it ?
> >
> > Any hints appreciated !
> >
> > thanks and kind regards
> > Heikki Doeleman
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726950.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]
> > For additional commands, e-mail: [hidden 
> > email]
> >
> >
>
>
> --
> Best regards,
> Vytautas R.
> ---
> www.xaloon.org
> www.allcarindex.com
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726961.html
>  To start a new topic under Apache Wicket, email
> ml-node+1842946-398011874-65...@n4.nabble.com
> To unsubscribe from Apache Wicket, click 
> here.
>
>



-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3727424.html
Sent from the Users forum 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



PopUp not refreshed while everything else is

2011-08-08 Thread Dawid Dudzinski
Hello,

I'm having a strange problem: In a fairly complex application I
refresh image on main page and need to pop up a dialog
[org.odlabs.wiquery.ui.dialog.Dialog] with another image.

Main page image updates without issues, dialog opens
[dialog.open(target);] but the image reference is broken. This is
really strange because when I reviewed Wicket Ajax Debug i can see the
proper image reference passed to the front end. There are no errors in
the debug window.

Could anyone shed some light why I would have such problems?

To add more to this mystery I have Next and Previous button on the
same pop up and when I click on them I can navigate to the image I'm
trying to open automatically.

Thanks,
Dawid

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



Re: Downloader for files outside Web Context

2011-08-08 Thread jcgarciam
Check: DownloadLink component

http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/link/DownloadLink.html


On Mon, Aug 8, 2011 at 1:14 AM, Arjun Dhar [via Apache Wicket] <
ml-node+3726062-793087976-65...@n4.nabble.com> wrote:

> Liek a DownloadServlet that is given some params and knows where to pick it
> from the local FS and streams it down. So the link ends up getting the
> streamed resource.
> Software documentation is like sex: when it is good, it is very, very good;
> and when it is bad, it is still better than nothing!
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Downloader-for-files-outside-Web-Context-tp3726061p3726062.html
>  To start a new topic under Apache Wicket, email
> ml-node+1842946-398011874-65...@n4.nabble.com
> To unsubscribe from Apache Wicket, click 
> here.
>
>



-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Downloader-for-files-outside-Web-Context-tp3726061p3727427.html
Sent from the Users forum 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



How can i toggle panel visibility without javascript?

2011-08-08 Thread Mike Mander

Hi,

i have two adress panels. Invoice and shipping. Shipping is off by default.
I would like to add a button or something to my invoice panel which is
toggling the visibility of the shipping panel.

I tried to add a page parameter to my current site and redirect, but the
added parameter is not present.

Do i have other options?

Thanks
Mike

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



Re: Stateless pagination

2011-08-08 Thread Vytautas R.
Hi,
 I guess you might be interested in this:

https://xaloon.googlecode.com/svn/trunk/xaloon-wicket/xaloon-wicket-components/src/main/java/org/xaloon/wicket/component/navigation/BookmarkablePagingNavigator.java

it's a bookmarkable navigator example with abitility to change items per
page and it is stateless.


On Mon, Aug 8, 2011 at 4:16 PM, heikki  wrote:

> hello,
>
> I've noticed that rather many Wicket components cause the page to become
> stateful, something which I wish to avoid.
>
> In particular I'm wondering if there is some way to use the Pagination*
> components (or similar alternative ones) to create a page that has
> pagination over a repeater, without making the page stateful.
>
> Sure, I suppose some info about the collection and current page etc. must
> be
> remembered on the server, but we still have good old HttpSession that could
> maybe be used for it ?
>
> Any hints appreciated !
>
> thanks and kind regards
> Heikki Doeleman
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726950.html
> Sent from the Users forum 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
>
>


-- 
Best regards,
Vytautas R.
---
www.xaloon.org
www.allcarindex.com


Stateless pagination

2011-08-08 Thread heikki
hello,

I've noticed that rather many Wicket components cause the page to become
stateful, something which I wish to avoid.

In particular I'm wondering if there is some way to use the Pagination*
components (or similar alternative ones) to create a page that has
pagination over a repeater, without making the page stateful.

Sure, I suppose some info about the collection and current page etc. must be
remembered on the server, but we still have good old HttpSession that could
maybe be used for it ?

Any hints appreciated !

thanks and kind regards
Heikki Doeleman

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726950.html
Sent from the Users forum 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: CSS, JS resource file handle issues?

2011-08-08 Thread Martin Grigorov
This wont harm. Do it.

About the problem in this thread - please create a quickstart and
attach it to Jira.

On Mon, Aug 8, 2011 at 12:54 PM, Peter Ertl  wrote:
> Well, I _did_ follow the development ;-)
>
> Just made me wonder just from looking at 'open...' that there's no close.
>
> Maybe we need to do this:
>
>
>                // otherwise open the url and proceed
>                URLConnection connection = url.openConnection();
> // ---
>                connection.setDoInput(false);
> // ---
>
>                final long milliseconds;
>
>                try
>                {
>                        if (connection instanceof JarURLConnection)
>                        {
>                                JarURLConnection jarUrlConnection = 
> (JarURLConnection)connection;
>                                URL jarFileUrl = 
> jarUrlConnection.getJarFileURL();
>                                URLConnection jarFileConnection = 
> jarFileUrl.openConnection();
> // ---
>                                jarFileConnection.setDoInput(false);
> // ---
>                                // get timestamp from JAR
>                                milliseconds = 
> jarFileConnection.getLastModified();
>                        }
>                        else
>                        {
>                                // get timestamp from URL
>                                milliseconds = connection.getLastModified();
>                        }
>
>
>
> Am 08.08.2011 um 11:11 schrieb Martin Grigorov:
>
>> Please try to follow the development.
>> The first close was removed with
>> https://issues.apache.org/jira/browse/WICKET-3895 which will be
>> released with RC6, so this is not the problem here. In RC5.1 there
>> were two calls of close() and this caused some problems in WebLogic
>> container. Calling second close on
>> weblogic.utils.zip.SafeZipFileInputStream causes NPE.
>>
>> Maybe current trunk is not correct but here is how I see it: a
>> Connection is opened for the URL, then a check is made whether this
>> Connection is JarURLConnection and then #openConnection is called in
>> the jar's URL. At the end only the first connection is closed which
>> automatically should close the inner connection.
>>
>> If this is not correct then we need to close the inner (jar url's)
>> connection quietly. No need to dump exceptions while trying to close
>> the connections used only to get the last mtime.
>>
>> On Mon, Aug 8, 2011 at 11:56 AM, Peter Ertl  wrote:
>>> Well, there is no close statement for URLConnection!
>>>
>>> Just looking at a method named 'open' makes me automatically search for the 
>>> equivalent 'close' statement.
>>>
>>> Am 07.08.2011 um 20:03 schrieb Peter Ertl:
>>>
 in Connection#getLastModified(String url), line 69 there's an

                               URLConnection jarFileConnection = 
 jarFileUrl.openConnection();

 without a close() statement...

 could that be the reason?

 Am 06.08.2011 um 00:21 schrieb rush66:

> As per your suggestion I grabbed the project from SVN and compiled the
> snapshot. Sadly there was no change in my results.  Is there a bug that is
> already filed for this?
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/CSS-JS-resource-file-handle-issues-tp3701938p3722413.html
> Sent from the Users forum 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
>


 -
 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: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>> -
>> 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: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: CSS, JS resource file handle issues?

2011-08-08 Thread Peter Ertl
Well, I _did_ follow the development ;-)

Just made me wonder just from looking at 'open...' that there's no close.

Maybe we need to do this:


// otherwise open the url and proceed
URLConnection connection = url.openConnection();
// ---
connection.setDoInput(false);
// ---

final long milliseconds;

try
{
if (connection instanceof JarURLConnection)
{
JarURLConnection jarUrlConnection = 
(JarURLConnection)connection;
URL jarFileUrl = 
jarUrlConnection.getJarFileURL();
URLConnection jarFileConnection = 
jarFileUrl.openConnection();
// ---
jarFileConnection.setDoInput(false);
// ---
// get timestamp from JAR
milliseconds = 
jarFileConnection.getLastModified();
}
else
{
// get timestamp from URL
milliseconds = connection.getLastModified();
}



Am 08.08.2011 um 11:11 schrieb Martin Grigorov:

> Please try to follow the development.
> The first close was removed with
> https://issues.apache.org/jira/browse/WICKET-3895 which will be
> released with RC6, so this is not the problem here. In RC5.1 there
> were two calls of close() and this caused some problems in WebLogic
> container. Calling second close on
> weblogic.utils.zip.SafeZipFileInputStream causes NPE.
> 
> Maybe current trunk is not correct but here is how I see it: a
> Connection is opened for the URL, then a check is made whether this
> Connection is JarURLConnection and then #openConnection is called in
> the jar's URL. At the end only the first connection is closed which
> automatically should close the inner connection.
> 
> If this is not correct then we need to close the inner (jar url's)
> connection quietly. No need to dump exceptions while trying to close
> the connections used only to get the last mtime.
> 
> On Mon, Aug 8, 2011 at 11:56 AM, Peter Ertl  wrote:
>> Well, there is no close statement for URLConnection!
>> 
>> Just looking at a method named 'open' makes me automatically search for the 
>> equivalent 'close' statement.
>> 
>> Am 07.08.2011 um 20:03 schrieb Peter Ertl:
>> 
>>> in Connection#getLastModified(String url), line 69 there's an
>>> 
>>>   URLConnection jarFileConnection = 
>>> jarFileUrl.openConnection();
>>> 
>>> without a close() statement...
>>> 
>>> could that be the reason?
>>> 
>>> Am 06.08.2011 um 00:21 schrieb rush66:
>>> 
 As per your suggestion I grabbed the project from SVN and compiled the
 snapshot. Sadly there was no change in my results.  Is there a bug that is
 already filed for this?
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/CSS-JS-resource-file-handle-issues-tp3701938p3722413.html
 Sent from the Users forum 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
 
>>> 
>>> 
>>> -
>>> 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: users-h...@wicket.apache.org
>> 
>> 
> 
> 
> 
> -- 
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
> 
> -
> 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: users-h...@wicket.apache.org



Re: CSS, JS resource file handle issues?

2011-08-08 Thread Martin Grigorov
Please try to follow the development.
The first close was removed with
https://issues.apache.org/jira/browse/WICKET-3895 which will be
released with RC6, so this is not the problem here. In RC5.1 there
were two calls of close() and this caused some problems in WebLogic
container. Calling second close on
weblogic.utils.zip.SafeZipFileInputStream causes NPE.

Maybe current trunk is not correct but here is how I see it: a
Connection is opened for the URL, then a check is made whether this
Connection is JarURLConnection and then #openConnection is called in
the jar's URL. At the end only the first connection is closed which
automatically should close the inner connection.

If this is not correct then we need to close the inner (jar url's)
connection quietly. No need to dump exceptions while trying to close
the connections used only to get the last mtime.

On Mon, Aug 8, 2011 at 11:56 AM, Peter Ertl  wrote:
> Well, there is no close statement for URLConnection!
>
> Just looking at a method named 'open' makes me automatically search for the 
> equivalent 'close' statement.
>
> Am 07.08.2011 um 20:03 schrieb Peter Ertl:
>
>> in Connection#getLastModified(String url), line 69 there's an
>>
>>                               URLConnection jarFileConnection = 
>> jarFileUrl.openConnection();
>>
>> without a close() statement...
>>
>> could that be the reason?
>>
>> Am 06.08.2011 um 00:21 schrieb rush66:
>>
>>> As per your suggestion I grabbed the project from SVN and compiled the
>>> snapshot. Sadly there was no change in my results.  Is there a bug that is
>>> already filed for this?
>>>
>>>
>>>
>>> --
>>> View this message in context: 
>>> http://apache-wicket.1842946.n4.nabble.com/CSS-JS-resource-file-handle-issues-tp3701938p3722413.html
>>> Sent from the Users forum 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
>>>
>>
>>
>> -
>> 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: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: CSS, JS resource file handle issues?

2011-08-08 Thread Peter Ertl
Well, there is no close statement for URLConnection!

Just looking at a method named 'open' makes me automatically search for the 
equivalent 'close' statement.

Am 07.08.2011 um 20:03 schrieb Peter Ertl:

> in Connection#getLastModified(String url), line 69 there's an
> 
>   URLConnection jarFileConnection = 
> jarFileUrl.openConnection();
> 
> without a close() statement...
> 
> could that be the reason?
> 
> Am 06.08.2011 um 00:21 schrieb rush66:
> 
>> As per your suggestion I grabbed the project from SVN and compiled the
>> snapshot. Sadly there was no change in my results.  Is there a bug that is
>> already filed for this?   
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/CSS-JS-resource-file-handle-issues-tp3701938p3722413.html
>> Sent from the Users forum 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
>> 
> 
> 
> -
> 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: users-h...@wicket.apache.org



Re: 1.5 - wicket module build question

2011-08-08 Thread Martin Grigorov
To make it more clear wicket module has type 'pom' and aggregates
modules wicket-core, wicket-util and wicket-request which are all
'jar'

On Mon, Aug 8, 2011 at 1:42 AM, Pedro Santos  wrote:
> wicket module under trunk is there just to be an agregator of the main
> dependencies needed to run Wicket for maven users.
>
> On Sun, Aug 7, 2011 at 5:53 PM, Kaz C  wrote:
>> I checked out Wicket (all modules) from trunk and executed mvn install.
>> Build was successful.
>> So, if I check my local maven repository and look
>> under .m2/repository/org/apache/wicket/wicket/1.5-SNAPSHOT shouldn't I see
>> a wicket-1.5-SNAPSHOT.jar ?
>>
>> Currently this is what I see:
>> $ ls
>> maven-metadata-local.xml  wicket-1.5-SNAPSHOT.pom
>>
>> Thanks,
>> - Kaz
>>
>
>
>
> --
> Pedro Henrique Oliveira dos Santos
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: quickstart with 1.5 build

2011-08-08 Thread Kaz C
aha, thanks. worked.

On Mon, Aug 8, 2011 at 12:29 AM, Martin Grigorov wrote:

> try just http://localhost:8080
>
> On Mon, Aug 8, 2011 at 9:38 AM, Kaz C  wrote:
> > I'm trying to get going with quickstart on a 1.5 build off of trunk.
> After
> > svn co, and mvn install, I used the form on
> > http://wicket.apache.org/start/quickstart.html to generate the command
> line:
> >
> > mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
> > -DarchetypeArtifactId=wicket-archetype-quickstart
> > -DarchetypeVersion=1.5-SNAPSHOT -DgroupId=com.mycompany
> > -DartifactId=myproject15 -DarchetypeRepository=
> >
> https://repository.apache.org/content/repositories/snapshots/-DinteractiveMode=false
> >
> > which executed successfully. I then ran mvn jetty:run within 'myproject'
> > directory and it also seemed to start up jetty fine. However, when I try
> to
> > access http://localhost:8080/myproject15
> > I get *HTTP ERROR 404 *Problem accessing /myproject15. Reason:* *Not
> Found
> >
> > have I missed a step in the setup, or is there anything else I can look
> into
> > to find possible cause of this issue?
> >
> > Regards,
> > Kaz C.
> >
> >
> > $ mvn -version
> > Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
> > Java version: 1.6.0_21
> > Java home: C:\Program Files\Java\jdk1.6.0_21\jre
> > Default locale: en_US, platform encoding: Cp1252
> > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> >
> >
> > C:\open-source\myproject15>mvn jetty:run
> > [INFO] Scanning for projects...
> > [INFO]
> > 
> > [INFO] Building quickstart
> > [INFO]task-segment: [jetty:run]
> > [INFO]
> > 
> > [INFO] Preparing jetty:run
> > [INFO] [resources:resources {execution: default-resources}]
> > [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> > resources, i.e. build is platform dependent!
> > [INFO] Copying 1 resource
> > [INFO] Copying 1 resource
> > [INFO] [compiler:compile {execution: default-compile}]
> > [INFO] Nothing to compile - all classes are up to date
> > [INFO] [resources:testResources {execution: default-testResources}]
> > [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> > resources, i.e. build is platform dependent!
> > [INFO] Copying 0 resource
> > [INFO] [compiler:testCompile {execution: default-testCompile}]
> > [INFO] Nothing to compile - all classes are up to date
> > [INFO] [jetty:run {execution: default-cli}]
> > [INFO] Configuring Jetty for project: quickstart
> > [INFO] webAppSourceDirectory
> > C:\open-source\open-source-commits\myproject15\src\main\webapp does not
> > exist. Defaulting to C:\open-source\open-source-c
> > ommits\myproject15\src\main\webapp
> > [INFO] Reload Mechanic: automatic
> > [INFO] Classes =
> > C:\open-source\open-source-commits\myproject15\target\classes
> > [INFO] Context path = /
> > [INFO] Tmp directory =
> > C:\open-source\open-source-commits\myproject15\target\tmp
> > [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
> > [INFO] Web overrides =  none
> > [INFO] web.xml file =
> >
> file:/C:/open-source/open-source-commits/myproject15/src/main/webapp/WEB-INF/web.xml
> > [INFO] Webapp directory =
> > C:\open-source\open-source-commits\myproject15\src\main\webapp
> > [INFO] Starting jetty 7.3.0.v20110203 ...
> > 2011-08-07 23:21:06.564:INFO::jetty-7.3.0.v20110203
> > 2011-08-07 23:21:07.908:INFO::No Transaction manager found - if your
> webapp
> > requires one, please configure one.
> > 2011-08-07 23:21:08.408:INFO::started
> >
> o.m.j.p.JettyWebAppContext{/,file:/C:/open-source/myproject15/src/main/webapp/},file:/C:/ope
> > n-source/myproject15/src/main/webapp/
> > INFO  - WebXmlFile - web.xml: url mapping found for
> filter
> > with name wicket.myproject15: [/*]
> > INFO  - Application- [wicket.myproject15] init: Wicket
> core
> > library initializer
> > INFO  - RequestListenerInterface   - registered listener interface
> > [RequestListenerInterface name=IBehaviorListener, method=public abstract
> > void org.a
> > pache.wicket.behavior.IBehaviorListener.onRequest()]
> > INFO  - RequestListenerInterface   - registered listener interface
> > [RequestListenerInterface name=IBehaviorListener, method=public abstract
> > void org.a
> > pache.wicket.behavior.IBehaviorListener.onRequest()]
> > INFO  - RequestListenerInterface   - registered listener interface
> > [RequestListenerInterface name=IFormSubmitListener, method=public
> abstract
> > void org
> > .apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
> > INFO  - RequestListenerInterface   - registered listener interface
> > [RequestListenerInterface name=IFormSubmitListener, method=public
> abstract
> > void org
> > .apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
> > INFO  - RequestListenerInterface   - registered listener interface
>

RE: Form in a form for ModalWindows

2011-08-08 Thread Chris Colman
I fixed it with this:
 



 
and so got DateTimeFieldS working correctly in IE when using ModalX
 
Only problem is that it adds extra height to the caption area.
 


From: Chris Colman [mailto:chr...@stepaheadsoftware.com] 
Sent: Monday, 8 August 2011 2:32 PM
To: users@wicket.apache.org
Subject: Form in a form for ModalWindows
 
Having problems trying to get DateTimeField working inside a ModalWindow
in IE* (same code works fine on all other browsers). I believe it is
because, for some reason, every ModalWindow containing a form must be
enclosed within an outer form. I've tried:
 
 
 

 
But it makes no difference. The problem still occurs.
 
Is it sufficient to just 'wrap' the ModalWindow in a form or do I need
to do some extra bits to make it happy?
 
Yours sincerely,
 
Chris Colman
 
Pagebloom Team Leader,
Step Ahead Software


pagebloom - your business & your website growing together
 
Sydney:   (+61 2) 9656 1278 Canberra: (+61 2) 6100 2120 
Email: chr...@stepahead.com.au  
Website:
http://www.pagebloom.com http://www.pagebloom.com/> 
http://develop.stepaheadsoftware.com
http://develop.stepaheadsoftware.com/> 
 
 


Re: quickstart with 1.5 build

2011-08-08 Thread Martin Grigorov
try just http://localhost:8080

On Mon, Aug 8, 2011 at 9:38 AM, Kaz C  wrote:
> I'm trying to get going with quickstart on a 1.5 build off of trunk. After
> svn co, and mvn install, I used the form on
> http://wicket.apache.org/start/quickstart.html to generate the command line:
>
> mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
> -DarchetypeArtifactId=wicket-archetype-quickstart
> -DarchetypeVersion=1.5-SNAPSHOT -DgroupId=com.mycompany
> -DartifactId=myproject15 -DarchetypeRepository=
> https://repository.apache.org/content/repositories/snapshots/-DinteractiveMode=false
>
> which executed successfully. I then ran mvn jetty:run within 'myproject'
> directory and it also seemed to start up jetty fine. However, when I try to
> access http://localhost:8080/myproject15
> I get *HTTP ERROR 404 *Problem accessing /myproject15. Reason:* *Not Found
>
> have I missed a step in the setup, or is there anything else I can look into
> to find possible cause of this issue?
>
> Regards,
> Kaz C.
>
>
> $ mvn -version
> Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
> Java version: 1.6.0_21
> Java home: C:\Program Files\Java\jdk1.6.0_21\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>
>
> C:\open-source\myproject15>mvn jetty:run
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] Building quickstart
> [INFO]    task-segment: [jetty:run]
> [INFO]
> 
> [INFO] Preparing jetty:run
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 1 resource
> [INFO] Copying 1 resource
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources {execution: default-testResources}]
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 0 resource
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [jetty:run {execution: default-cli}]
> [INFO] Configuring Jetty for project: quickstart
> [INFO] webAppSourceDirectory
> C:\open-source\open-source-commits\myproject15\src\main\webapp does not
> exist. Defaulting to C:\open-source\open-source-c
> ommits\myproject15\src\main\webapp
> [INFO] Reload Mechanic: automatic
> [INFO] Classes =
> C:\open-source\open-source-commits\myproject15\target\classes
> [INFO] Context path = /
> [INFO] Tmp directory =
> C:\open-source\open-source-commits\myproject15\target\tmp
> [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
> [INFO] Web overrides =  none
> [INFO] web.xml file =
> file:/C:/open-source/open-source-commits/myproject15/src/main/webapp/WEB-INF/web.xml
> [INFO] Webapp directory =
> C:\open-source\open-source-commits\myproject15\src\main\webapp
> [INFO] Starting jetty 7.3.0.v20110203 ...
> 2011-08-07 23:21:06.564:INFO::jetty-7.3.0.v20110203
> 2011-08-07 23:21:07.908:INFO::No Transaction manager found - if your webapp
> requires one, please configure one.
> 2011-08-07 23:21:08.408:INFO::started
> o.m.j.p.JettyWebAppContext{/,file:/C:/open-source/myproject15/src/main/webapp/},file:/C:/ope
> n-source/myproject15/src/main/webapp/
> INFO  - WebXmlFile                 - web.xml: url mapping found for filter
> with name wicket.myproject15: [/*]
> INFO  - Application                - [wicket.myproject15] init: Wicket core
> library initializer
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IBehaviorListener, method=public abstract
> void org.a
> pache.wicket.behavior.IBehaviorListener.onRequest()]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IBehaviorListener, method=public abstract
> void org.a
> pache.wicket.behavior.IBehaviorListener.onRequest()]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IFormSubmitListener, method=public abstract
> void org
> .apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IFormSubmitListener, method=public abstract
> void org
> .apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=ILinkListener, method=public abstract void
> org.apach
> e.wicket.markup.html.link.ILinkListener.onLinkClicked()]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=ILinkListener, method=public abstract void
> org.apach
> e