Hey everyone,
I'm new to the users list and had a question about a certain type of design that I was hoping someone could shed some light on for me, I am most likely going about this completely bass-ackwards.

The site I'm creating operates ontop of a very basic CMS system. In the database the admin can create a new "page" that consists of a name and then content (straight HTML), looks like this:

page
----------
name: varchar(128)
content: text


So the idea of this is to develop a single bookmarkable page, let's call it ContentPage, that takes a "name" argument and before displaying, loads all the appropriate content from the DB, then injects it into the page. So I need the ContentPage to be bookmarkable, and to avoid too much information in the URL, I'm using an alias (content) for it. So the url would look something like this:

http://mysite.com:8080/ContentPage.html?bookmarkablePage=content&name=/home

From this, I want to look at the page parameter "name" get the value "/home" then pickup the content from the DB and place it into the page. Atleast that is the idea.

I don't know if this is a down side or not, but the obvious side effect of this is that almost *every* page on the site is the ContentPage differing only by the page parameters "name". As an example, here's a snippet of my nav bar and how the links look:

---------------------
add(new BookmarkablePageLink("home", HomePage.class, createPageParameters("path", "/home"))); add(new BookmarkablePageLink("projects", HomePage.class, createPageParameters("path", "/projects"))); add(new BookmarkablePageLink("downloads", HomePage.class, createPageParameters("path", "/downloads"))); add(new BookmarkablePageLink("about", HomePage.class, createPageParameters("path", "/about"))); add(new BookmarkablePageLink("contact", HomePage.class, createPageParameters("path", "/contact")));
---------------------
***createPageParameters just wraps the values in a PP and returns it***

So the problem I'm having is that any time I click any of my links in my page:

--------------
<a wicket:id="home">Home</a>
<a wicket:id="projects">Projects</a>
<a wicket:id="downloads">Downloads</a>
<a wicket:id="about">About</a>
<a wicket:id="contact">Contact</a>
--------------

I get a Page Expired error. For example, clicking downloads my URL changes correctly to:
http://localhost:8080/kallasoft/ContentPage.html?bookmarkablePage=content&path=%2Fdownloads

but I'm seeing a PageExpired. I'm betting this has to do with the fact that every page in my site is really the same page, but I don't understand the mechanics behind this and why it's barfing. Any help understanding this would be great, or pointing out if I'm doing something awful and possibly another way of addressing this.

Best wishes,
Riyad


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to