cancel
Showing results for 
Search instead for 
Did you mean: 

More Items

sjeek
Champ in-the-making
Champ in-the-making
Hello,

I would like to have more spaces or more files (morge then 9) on 1 space.
I mean, that these files are visible in 1 page, and not going to page 2 etc…
can i adjust that somewhere?

greetings
13 REPLIES 13

kevinr
Star Contributor
Star Contributor
Yes that is configurable in the "web-client-config.xml" file, will probably be in this location:
tomcat-5.5.12\webapps\alfresco\WEB-INF\classes\alfresco\web-client-config.xml

sjeek
Champ in-the-making
Champ in-the-making
Thank you!
I found it

now, i would like to have a link on the brows.jsp where i can choose how mutch items i would like to show on the page. (I think that would be possible if i give some parameters along with it?)
So, that i can choose in for example 10 items, 20 items, 100 items?

mayby I would program that by myself, but i someone had it allready, it would be wonderfull  :wink:

sjeek
Champ in-the-making
Champ in-the-making
If you have the "Browse.jsp" page
Could someone add a little code to it to have a input field and button left of the 'page 1' field to put the number of items on one page in?
If you know what i mean?
I'm having troubles with adding some code to it.

if someone could help me?

thx!

sjeek
Champ in-the-making
Champ in-the-making
i just added a textfield and a button to the page

<input type="text" size="10"/><input type="submit" value="Submit"/>
But how could i get the value of the inputbox in de BrowseBean.setBrowsePageSize()?

(if that is possible)

gavinc
Champ in-the-making
Champ in-the-making
You will need to use the JSF components to allow this to be updated.

Change your code to the following:

<h:inputText value="#{BrowseBean.browsePageSize}" size="10" />
<h:commandButton value="Submit" />

and you should find it picks up the current page size value and populates the input field. You can then change it and press the Submit button for the change to take effect.

sjeek
Champ in-the-making
Champ in-the-making
thank you very mutch!
it works  Smiley Happy

sjeek
Champ in-the-making
Champ in-the-making
I got another question
Is it possible when you give your own values, that these values would be the default one (like in the web-client-config.xml)?
because, when i change the view, the values would be back to their original state.

sjeek
Champ in-the-making
Champ in-the-making
I even changed the defaultvalues in the viewsconfig, but it didn't changed.
So i don't know where i can adjust this, if my value (in the textfield) would become the default value.

suggestions?

sjeek
Champ in-the-making
Champ in-the-making
public void viewModeChanged(ActionEvent event)
   {
      UIModeList viewList = (UIModeList)event.getComponent();

      // get the view mode ID
      String viewMode = viewList.getValue().toString();

      if (VIEWMODE_DASHBOARD.equals(viewMode) == false)
      {
         // set the page size based on the style of display
         setBrowsePageSize(this.viewsConfig.getDefaultPageSize(PAGE_NAME_BROWSE,
               viewMode));

         if (logger.isDebugEnabled())
            logger.debug("Browse view page size set to: " + getBrowsePageSize());

         // in case we left for dashboard
         if (isDashboardView() == true)
         {
            setDashboardView(false);
         }

         // push the view mode into the lists
         setBrowseViewMode(viewMode);
      }
      else
      {
         // special case for Dashboard view
         setDashboardView(true);
      }
   }

when i edit this peace of code
setBrowsePageSize(this.viewsConfig.getDefaultPageSize(PAGE_NAME_BROWSE,
               viewMode));
to this
setBrowsePageSize(5);

I got always tha default values for my pagesize, so not my "5"
also when i call the "getBrowsePageSize()", it will not show

i'm doing something wrong?