Hmm I'd do what you do and set a custom expired page, with perhaps a
login form on it.. Voila :)
vishy_sb wrote:
Hi all,
I have a logout link that takes me to the login (Home) page. However when I
click the back button it brings me back to the same page that I was on
(Although I am not able
Hi Guys
I'll be putting in direct JTS
(http://www.vividsolutions.com/jts/main.htm) support in Openlayers
contrib. Any objections to this? This means that the API will break,
since I'll be using JTS points instead of the homegrown classes as
currently. Also I plan to support drawing shapes on
Not sure what do you want and why is it about wicket?
Why not just make a redirector service, like:
interface IRedirector
{
void redirect(PageParams pp);
}
class TournamentRedirector implements IRedirector
{
void redirect(PageParams pp)
{
setResponsePage(EditTournament.class, pp);
}
}
nate roe wrote:
I've written a stateless auto-complete TextField by adapting Wicket's own
JavaScript and using a servlet for the back end. I don't like the servlet
and I would like to instead use Wicket to serve the auto-complete
suggestions list, but I'm not sure how.
Well, I've just
Nino.Martinez wrote:
Why not put these to into wicketstuff minies?
aditsu wrote:
Well, I've just implemented a StatelessAutoCompleteTextField that works
in
wicket directly :)
I used a similar technique to my StatlessAjaxLink described at
i've been using the aforementioned toggle behavior almost always in
ajaxy pages, and in that case they work fine.
basically that means i add toggle behaviors to components in a page.
when i call an ajax link, toggle works ok because the isTemporary()
method of the behavior returns *true*
There is ServletWebRequest.isAjax
**
Martin
2008/12/4 francisco treacy [EMAIL PROTECTED]:
i've been using the aforementioned toggle behavior almost always in
ajaxy pages, and in that case they work fine.
basically that means i add toggle behaviors to components in a page.
when i call an
Hi,
I know you can set an anchor when you are coming from a Link component, but
how can I set an anchor without the Link?
From a Button's onSubmit, I am calling setResponsePage with a Page instance,
and have a reference to a component on that page that I would like the
browser to jump directly
yes that was it, thanks very much..
Wayne Pope wrote:
not sure if this is the one you mean - it was titled :
Is there any other way? DataProviders must hit the Db twice
On Wed, Dec 3, 2008 at 3:41 PM, Serkan Camurcuoglu
[EMAIL PROTECTED] wrote:
Hi all,
Sorry for disturbing but I remember
thanks for the hint, martin.
ServletWebRequest request = (ServletWebRequest) RequestCycle.get().getRequest();
if (!request.isAjax()) {
response.renderJavascriptReference(new
JQueryEffectCoreResourceReference());
(...)
}
in renderHead() seems to do the trick.
Hi everybody,
I wonder if there is an elegant way to feed a ListMultipleChoice component
with a comma separated string (using a PropertyModel)
e.g. with the following property to be accessed by PropertyModel:
public String getMySelectedOptions() {
return optionA,optionC;
}
...something like
Here is how I solved the problem.
I extended AjaxSelfUpdatingTimerBehavior and overrid onPostProcessTarget().
inside method I replace the table wicket ( because the DefaultDataTable
does not seem able to dynamically add column);
I created a borderwicket containing the table, added the timer
I would just create a model that wraps the property model and does the
conversion.
On Thu, Dec 4, 2008 at 9:12 AM, pixologe [EMAIL PROTECTED] wrote:
Hi everybody,
I wonder if there is an elegant way to feed a ListMultipleChoice component
with a comma separated string (using a PropertyModel)
Thanks for the reply...
that's exactly what I just tried, until I realized that this will not work
for writing the selected options back to the my domain object... at least I
think so:
I can teach the model to accept either String and List in setObject, however
there's no way of letting it return
How about something like this:
public class CommaSeparatedToStringListModel implements IModelListString
{
private final IModelString csvModel;
public CommaSeparatedToStringListModel(final IModelString csvModel)
{
this.csvModel = csvModel;
}
public ListString
John,
Well spotted. AbstractPropertyModel implements IChainingModel but breaks its
contract :
* Models that implement this interface will support chaining of IModels.
getObject() of a
* IChainingModel should do something like:
*
* pre
* if ( object instanceof IModel) { return
Thanks for the reply there Nino. I have set up a custom expired page and have
set the following in Application class
getApplicationSettings().setPageExpiredErrorPage(PageExpired.class);
Now the page expired is set to this page. But still on hitting the back
button I get back to the page. I
you can set your application's home page as your expired page or throw a
restartresponseexception (to home page) from the constructor of your
page expired page.. at least I do it that way..
vishy_sb wrote:
Thanks for the reply there Nino. I have set up a custom expired page and have
set the
Really interested by a Wiki page too.
--
View this message in context:
http://www.nabble.com/Wicket-integration-with-good-charts-api-tp20322515p20837861.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
That you get back to your last page when hitting the back button has
nothing to do with Wicket. It's just what browsers do when you hit the
back button. I guess you are using firefox (3), and firefox 3 will show
a page from its in-memory cache, even if the page headers tell it the
page is expired
I'm doing it like this from my Page:
@Override
public void renderHead(IHeaderResponse response) {
if (anchor != null) {
response.renderOnLoadJavascript(location.href='# + anchor + ';);
anchor = null;
}
}
Just have a setter for the anchor
I am using AuthenticatedWebApplication , the example documents how to
control access to pages with roles using annotations ,but In my case i
have some users without any role , can I prevent access to my aplication
for these users ?
--
View this message in context:
Hi Nino,
It is possibile to integrate spring security with the wicket swarm/
wasp software.
This gives you freedom to attach any kind of authentication mechanism,
including openid.
We use the integration for a LDAP based integration.
If you like, I have a sample on how to deal with this
I am using this @AuthorizeInstantiation (wicket authetication annotation)
in my pages , the code for this annotation
@Retention(RetentionPolicy.RUNTIME)
@Target( { ElementType.PACKAGE, ElementType.TYPE })
@Documented
@Inherited
public @interface AuthorizeInstantiation {
/**
Hi everybody,
Recently we discovered that SecondLevelCacheSessionStore was giving us a huge
performance hit in some of our applications, so we decided to the old
HttpSessionStore. Performance increase was significant and the impact on memory
usage was relatively small, so we decided to stick
Hi,
Sorry, I forgot to mention that the wicket version we are using, is 1.3.5
- Mikko
Lähettäjä: Mikko Pukki [EMAIL PROTECTED]
Lähetetty: 4. joulukuuta 2008 22:29
Vastaanottaja: users@wicket.apache.org
Aihe: AjaxSelfUpdatingBehavior problem with
I'm sure this has been asked and answered but after searching the list, I'm
still not sure if there is something I can do to fix my situation.
The general gist is this:
1) I make some changes to a page with ajax calls (i.e. replace panel
contents)
2) Click a link to take me away from that page
If the ajax changes are reflected in the relevant model(s) then you
will see them when you go back to the page.
Scott
On Thu, Dec 4, 2008 at 2:29 PM, Matt Welch [EMAIL PROTECTED] wrote:
I'm sure this has been asked and answered but after searching the list, I'm
still not sure if there is
If you want to manage all the back button events, i suggest you to use a
simple bookmarking library.likeRSH
We use the ajax calls to insert
some tag that went added to the address after #.
(target.prependjavcascript).
After that, when going back to another tag, there was a script defined on
the
The most logical place would be at
http://www.wicketframework.org/wicket-extensions/.
However the link to the sourceforge site from there gives me old
code(1.2.7). I have a jar right now that is 1.3.2 and I'm not sure where it
came from.
I need the source code so I can customize the wizard
Scott Swank wrote:
If the ajax changes are reflected in the relevant model(s) then you
will see them when you go back to the page.
Hmmm... perhaps I shouldn't have abstracted my issue and instead discussed
exactly what is happening. Let me change some steps.
1) On a page with a form I
Hi,
i want to create a new browser-window from a wicket-dojo popup menu (non
modal!). the popup is a pure javascript solution. in wicket there is a
possibility using popupsettings within a link.
a) is it possible to switch the request to a new browser-window?
(RequestCycle.get())
b) exist
Maven makes this really easy, but if you are managing your jars yourself,
you can still use the Maven repo as a source:
http://repo1.maven.org/maven2/org/apache/wicket/
http://repo1.maven.org/maven2/org/apache/wicket/wicket-extensions/1.3.2/
Or you can go to the main wicket homepage
Hi Everyone,
I'm just getting started with wicket and am learning by playing around with
building an ecommerce application on top of wicket, spring and hibernate.
I've been (Ha!) using @SpringBean to inject my spring dependencies and am
very impressed with it.
One thing I'm wondering about is
Hi,
I have a ListView containing several RadioButtons.setRequired(true) (a Q A
list) that are all required to be answered. However, if someone doesn't
click on all of the radio buttons, I see three Please answer the question
messages on the feedback panel. How can I just consolidate it so only
You simply can't do that because the nature of Annotations.
Even if AuthorizeInstantiation's values were of type Object[] you
wouldn't be able to do that with Enums.
You will have to use Strings.
Although there's some hack you can make using Java 6 to accomplish what
you want. If you are
I've found a way to implement a type-safe check for this. Here it goes:
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import
I don't know about this. It would work (and break existing code, unless you
use something other than value for the annotation). I don't know if I would
want to have to create a new class for each role in my project. Yes, it
would be a small price to pay, but it just feels wrong.
On Thu, Dec 4,
Well... You don't have to create one java file for each class. You can
put all of them on the same file, like:
public final class MyAppRoles {
private MyAppRoles() {}
public static final class Admin extends Role {
private Admin() {}
}
public static final class User extends
What do you mean by Enums as Objects?
On Thu, Dec 4, 2008 at 11:11 PM, Bruno Borges [EMAIL PROTECTED]wrote:
Well... You don't have to create one java file for each class. You can put
all of them on the same file, like:
public final class MyAppRoles {
private MyAppRoles() {}
public
Well... you can't do this:
@Foo(values={MyEnum.FOO, MyEnum.BAR});
@interface Foo {
Object[] values() default {};
}
James Carman wrote:
What do you mean by Enums as Objects?
On Thu, Dec 4, 2008 at 11:11 PM, Bruno Borges [EMAIL PROTECTED]wrote:
Well... You don't have to create one java
But, you can declare the values property to be of type MyEnum[]. Is what
we're really looking for here the ability to extend an enum (if that even
makes sense)? I've often thought it would be nice if I could add stuff to
an enum from the outside. But, that kind of goes against the idea of an
Should you be using a RadioChoice instead?
novotny wrote:
Hi,
I have a ListView containing several RadioButtons.setRequired(true) (a Q
A list) that are all required to be answered. However, if someone doesn't
click on all of the radio buttons, I see three Please answer the
question
It is not possible to extend enums nor annotations. And as the question
here is about the use of @AuthorizeInstantiation, there's no way to
declare MyEnum[], of course :-)
So, the only way, for now, to have type-safety is using that
Class-thing. I don't vote for this though. A simple class
You can write a custom validator that checks all three and gives one message
if any are not completed. Done correctly, it could be very reusable - give
it an array of components that it checks and a resource key to get the
message.
On Thu, Dec 4, 2008 at 8:22 PM, novotny [EMAIL PROTECTED]
when you give propertymodel anoter imodel do you have to begin the
expression with object to get the value out?
-igor
On Thu, Dec 4, 2008 at 7:31 AM, jWeekend [EMAIL PROTECTED] wrote:
John,
Well spotted. AbstractPropertyModel implements IChainingModel but breaks its
contract :
* Models
If you were going to do this, it would be much better (IMHO) to use
interfaces... This gives you interesting possibilities:
(Disclaimer - the following is not an original thought - Igor mentioned this
last week - give credit where it's due)
interface User
interface Admin extends User
John, Cemal - that method in AbstractPropertyModel absolutely does abide by
the contract - look at what it calls (getTarget()):
public final Object getTarget()
{
Object object = target;
while (object instanceof IModel)
{
Object tmp = ((IModel?)object).getObject();
if
I would recommend using a custom model for this. The advantage is that it
can be used anywhere. Something like:
// bookmarkable constructor
public CheeseDetailsPage(PageParameters parameters) { #1
this(new CheeseByIDModel(getIDFromParams(parameters)));
}
// non-bookmarkable
49 matches
Mail list logo